MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuel de service Page 35

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 282
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 34
Compiler Directives
2-15
expr Unary minus negates the expression. The
argument must be numeric.
+
expr No effect; the operand must be numeric.
~
expr Bitwise negation of the operand. The
argument must be integral.
expr* expr Multiply the two expressions together; the
operands must be numeric.
expr/ expr Divide the two expressions; the operands
must be numeric.
expr% expr Take the integer modulo of the expressions;
the operands must be integral.
expr+ expr Works on numeric types, strings, vectors,
matrices, and records as follows:
Numeric Types - Add the two expressions
together; the operands must be numeric.
Strings - The strings are concatenated.
Vectors - If the first argument is a vector and
the second is a scalar, it adds the scalar to the
vector.
Matrices - If the first argument is a matrix
and the second is a vector of the same
column-width as the matrix, it adds the
vector as another row in the matrix.
Records - If the first argument is a record, it
adds the second argument as a parameter
identifier (with its current value).
Table 2-3: Target Language Expressions (Continued)
Expression Definition
Vue de la page 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 281 282

Commentaires sur ces manuels

Pas de commentaire