MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 254

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 253
B
Target Language Compiler Error Messages
B-16
The language being implemented has changed from
old-language
to
new-language
(Warning)
The language being implemented should not be changed in midstream because
GENERATE function calls that appear prior to the %language directive may cause
generate functions to load for the prior language. Only one language directive
should appear in a given file.
The left-hand side of a . operator must be a valid scope identifier
When using the . operator, the left-hand side of the . operator must be a valid
in-scope identifier. For example:
%assign x = 1
%assign y = x.y
In this code, the reference to x.y produces this error message because x is not
defined as a scope.
The left-hand side of an assignment must be a simple expression com-
prised of ., [], and identifiers
Illegal left-hand side of assignment.
The number of columns specified (
specified-columns
) did not match the
actual number of columns in all of the rows (
actual-columns
)
When specifying a Target Language Compiler matrix, the number of columns
specified did not match the actual number of columns in the matrix. For
example:
%assign mat = Matrix(2,1) [ [1 2] [2 3] ]
In this case, the number of columns in the declaration of the matrix (1) did not
match the number of rows seen in the matrix (2). Either change the number of
rows in the matrix, or change the matrix declaration.
Zobrazit stránku 253
1 2 ... 249 250 251 252 253 254 255 256 257 258 259 ... 281 282

Komentáře k této Příručce

Žádné komentáře