R2013a run-time error message requesting the use of scaler index in my function
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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 个评论
Walter Roberson
2014-4-12
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
2014-4-12
Walter Roberson
2014-4-12
编辑:Walter Roberson
2014-4-12
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
2014-4-12
Paul Bayendang
2014-4-14
Paul Bayendang
2014-4-15
回答(1 个)
per isakson
2014-4-12
0 个投票
- 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 个评论
Paul Bayendang
2014-4-14
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!