To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I am using a structure in my script m-file. Everytime I run my code, I get the following error:
??? Subscripted assignment between dissimilar structures.
To run the code, I clear all the variables and then re-run the code. This way I don't get the error. Is there something that I am missing?
No products are associated with this question.
The error message contains the line number also. Inspect this line to find out, why the structs are different.
Another method for debugging is using the debugger (sic!):
dbstop if error
It sounds like you are running a script instead of a function? If so, my guess is that with a clear workspace your code creates some variables, but these creation assignments don't work right when the variables are built up by the code if run again without a clear workspace. This is the best I can do without seeing the code...