R2013a run-time error message requesting the use of scaler index in my function
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hi All,
My Matlab code works well (executes without run-time errors) in Matlab R2012a and earlier versions but not in Matlab R2013a. It's complaining with run-time error that, i must use but Scaler Indexing in a certain line of my code -- which made use of calling multiple functions/arguments as inputs to another function which i created.
Is this R2013a backward compatibility issue or a bug? Any heads-up or work-around will be appreciated.
6 Comments
Walter Roberson
on 12 Apr 2014
Could we see the code?
Have you put in a breakpoint and examined the variable values to see if there might be a non-scalar reference occurring ?
Paul Bayendang
on 12 Apr 2014
Walter Roberson
on 12 Apr 2014
Edited: Walter Roberson
on 12 Apr 2014
Just not enough information for me to go on. Even an exact copy of the error message and associated line of code would help. For example is the message
Scalar index required for this type of multi-level indexing.
or
Dimension argument must be a positive integer scalar within indexing range.
Paul Bayendang
on 12 Apr 2014
Paul Bayendang
on 14 Apr 2014
Paul Bayendang
on 15 Apr 2014
Answers (1)
per isakson
on 12 Apr 2014
0 votes
- Most likely the problem is specific to your system.
- The probability of "Is this R2013a backward compatibility issue or a bug?" is really small.
Did you try to track down the problem with the debugger?
Here are some links on debugging in Matlab
Start debugging by setting Breakpoints, Stop on Errors
1 Comment
Paul Bayendang
on 14 Apr 2014
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!