MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale di Servizio Pagina 35

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 281 282

Commenti su questo manuale

Nessun commento