math - Subscripted assginment dimenstion mismatch - Error in Matlab -
I have an array of multiple rows and 5 columns (fixed), dynamically (in loop) values to save I need this thing
I give this error for 1 to na aa (i, :) = [var1 var2 var3 var4 var5] end_for
Anyone who knows the solution, please help me.
Your code example is not Matlab
The error you got is that the size of A (counter, :)
(the variable in which you try to provide new values) [var1 var2 Var3 var4 var5]
.
Use the debug mode, put a breakpoint on the problem line and check that the size (A (counter, :))
and is the size ([var1 var2 Var3 var4 var5 var5])
then fix your code so that these two sizes will actually match.
Good luck!
PS, this is the best.
Comments
Post a Comment