I'm working with GUIDE and I have this error
Index exceeds matrix dimensions.
Error in ==> RAMAS>carga_cable_Callback at 211
I get variables of two uitable that are in different GUIDE, s and VB are in a GUIDE and r1, VB and jj in another GUIDE. Besides I can export all variables to workspace, but when a I execute code from GUIDE occurs error. When I write the operation in command window, I have the result that I need.
I do not understand what happens, since in a m.file this operation should be written as (without a point before the first item):
s=10000 jj=[3;4] r1=[0.003982; 0.01542] x1=[0.008006; 0.0173] VB=[138 13.8 13.8 13.8 4.16] r=r1*(s./(1000.*VB(jj).*VB(jj)))
No products are associated with this question.
This unequivocally means, that either the code called from your GUI differs from the code typed into the command window, or the data differ. Due to the omnipresence of typos, I'm convinced, that such a problem causes the troubles. Please check the code again. Perhaps you've edited the code but did not save it before running?
Set a breakpoint on the "r=" line and see what jj is. Evidently jj is greater than 5. This link will help you: http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
Play games and win prizes!Learn more