Info

This question is closed. Reopen it to edit or answer.

R2013a run-time error message requesting the use of scaler index in my function

1 view (last 30 days)
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
Paul Bayendang
Paul Bayendang on 14 Apr 2014
Hi Walter,
I'm trying to re-create the issue, as it takes a while for the code to run to the point of failure. I'll then post screen shot of the error message and the line of code where the error lies. But the error message has something to do with scaler index .
Regards
Paul Bayendang
Paul Bayendang on 15 Apr 2014
My Matlab codes in R2013a remain unchanged but i didn't get the same scaler index error when running the code this time but got another error (which i guess could be more / less related to the scaler index).
Error message:
Error using containers.Map/subsref
The specified key is not present in this container.
The highlighted line of code is:
[place, placecorr] = place(signaltime,... [results(channelNames).ID],out,config);
I hope that helps a bit.

Answers (1)

per isakson
per isakson on 12 Apr 2014
  • 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
Paul Bayendang on 14 Apr 2014
Thanks Per for your feedback.
Well, if you're refering to manually debugging the problem, that i already know, as Matlab automatically shows the line of code where the problem lies; but i'm looking for a workaround solution in Matlab R2013a, as this wasn't the case in earlier versions. That's why i'm talking of a bug or compatibility issue.
Anyways, i'll re-install R2013a first (runs on my Windows 7 starter machine) and as well install on my machine running Windows XP (which was running R2012a and works well there) and see how it goes.
I'm just trying to re-create the problem by running the code again, it does take a while and i'll upload snap shots of what i'm experiencing. But the complain message seems to be: Scaler index required for this type of multi-level indexing.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!