User`s guide
B Error and Warning Messages
B-4
Error: File: filename Line: # Column: # An array for multiple LHS assignment cannot contain
token.
If the left-hand side of a statement is a multiple assignment, the vector
cannot contain this token. For example, you cannot assign to constants.
[p1] = myfunc(a) % Correct
[3] = myfunc(a) % Incorrect
Error: File: filename Line: # Column: # Expected a variable, function, or constant, found
"string".
There is a syntax error in the specified line. See the online MATLAB
Function Reference pages.
Error: File: filename Line: # Column: # Expected one of , ; % or EOL, got "string". There is
a syntax error in the specified line. See the online MATLAB Function
Reference pages.
Error: File: filename Line: # Column: # Functions cannot be indexed using {} or . indexing.
You cannot use the cell array constructor, {}, or the structure field access
operator,
., to index into a function.
Error: File: filename Line: # Column: # Indexing expressions cannot return multiple results.
There is an assignment in which the left-hand side takes multiple values, but
the right-hand side is not a function call but rather a structure access. For
example:
[x, y] = f(z) % Correct
[x, y] = f.z % Incorrect
Error: File: filename Line: # Column: # Invalid multiple left-hand-side assignment.
For
example, you try to assign to constants
[] = sin(1); % Incorrect
Error: File: filename Line: # Column: # MATLAB assignment cannot be nested.
You cannot
use a syntax such as
x = y = 2. Use y = 2, x = y instead.
Error: File: filename Line: # Column: # Missing operator, comma, or semicolon. There is a
syntax error in the file. Syntactically, an operator, a comma, or a semicolon is
expected, but is missing. For example:
if x == y, z = w; end % Correct
if x == y, z = w end % Incorrect