Why do I get the error 'Missing operator, comma, semicolon, or white space.' when I do not have a space between elements of my matrix?
I have the following code:
a = 2;b = 'string';temp = [b '-' num2str(a) ':'num2str(a)]
If I run the code on MATLAB 6.5 (R13), I get the following error:
??? temp = [b '-' num2str(a) ':'num2str(a)] | Error: Missing operator, comma, semicolon, or white space.
This code runs without error in MATLAB 5.2 (R10) and MATLAB 5.3 (R11).
Best Answer