MATLAB COMPILER RELEASE NOTES User's Guide Page 239

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 238
Compile-Time Errors
B-5
Error: File:
filename
Line: # Column: # An array for multiple LHS assignment cannot contain
token
. If t he 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 accessible from the Help browser.
Error: File:
filename
Line: # Column: # Expected one of , ; % or EOL, got "
string
". There is
a syntax e rror in the specif ied line. See the online MATLAB Function
Reference pages accessible from Help.
Error: File:
filename
Line: # Column: # Functions cannot be indexed using {} or . indexing.
You cannot use the cell array constructor, {}, o r the structure field access
operator,
., to index into a function.
Error: File:
filename
Line: # Column: # Indexing expressions cannot return multiple results.
There is an assignme nt in which the left-hand side takes multip le values, but
the right-hand side is not a functio n call but rather a s truct ure a cces s. 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.Usey = 2, x = y instead.
Error: File:
filename
Line: # Column: # Missing operator, comma, or semicolon. There is a
syntax error in the file . S yntactically, an o perat or, a comma, o r a s emicolo n is
expected, but is missing. For example,
if x == y, z = w; end % Correct
if x == y, z = w end % Incorrect
Page view 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 263 264

Comments to this Manuals

No comments