Hi all,
I'm currently running a program with code that was originally written for MATLAB R2006a or R2007b for a research project, but I only have access to R2019b (through university computer access). There is an issue that seems to be due to a change in syntax from past versions, and I'm wondering if anyone has any insight to this issue.
The line of code that I am running into problems is:
if A==0;break;end
This returns an error statement of: '"BREAK can only be used in a FOR or WHILE loop"
I know there isn't a lot of detail in my problem, but I am relatively new to Matlab. Is there a way that this can be fixed? Any insight is greatly appreciated!
Best Answer