MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Instrukcja Obsługi Strona 250

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 282
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 249
B
Target Language Compiler Error Messages
B-12
The %implements language does not match the language currently being
generated (
language
)
The language or languages specified in the %implements directive must exactly
match the
%language directive.
The %return statement can only appear within the body of a function
A %return statement can only be in the body of a function.
The :: operator can only be used within a function (Warning)
The :: operator (used to specify global scope within a function) should not be
used outside of a function body.
The == and != operators can only be used to compare values of the same
type
The == and != operator arguments must be the same type. You can use the
CAST() built-in function to change them into the same type.
The argument for %openfile must be a valid string
When opening an output file, the name of the file must be a valid string.
The argument for %with must be a valid scope
The argument to %with must be a valid scope identifier. For example:
%assign x = 1
%with x
%endwith
In this code, the %with statement argument is a number and produces this
error message.
The argument for an [] operation must be a repeated scope symbol, a
vector, or a matrix
When using the [] operator to index, the expression on the left of the brackets
must be a vector, matrix, string, numeric constant, or a repeated scope
Przeglądanie stron 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 281 282

Komentarze do niniejszej Instrukcji

Brak uwag