Handle References and Structure
2 views (last 30 days)
Show older comments
I am trying to decode a script someone else wrote. I am getting a "bad cell reference" error message on the following:
handles.r = handles.NonNaNIndices{handles.IntTable,1}(handles.loop,1);
Any help or direction is appreciated.
0 Comments
Accepted Answer
David
on 15 Apr 2014
3 Comments
Walter Roberson
on 15 Apr 2014
Because your IntTable has multiple entries, your
handles.NonNaNIndices{handles.IntTable,1}
is expanding to multiple outputs, and you are then trying to use () indexing on those multiple elements; you can only use () indexing if the {} expression expands to a single element. You need to decide what output you want in this situation.
More Answers (1)
Walter Roberson
on 15 Apr 2014
At the command line give the command
dbstop if error
and then run the program. When it stops, please show
class(handles)
class(handles.NonNaNIndices)
size(handles.NonNaNIndices)
0 Comments
See Also
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!