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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 50
Compiler Directives
2-31
FORMAT(expr1, expr2)
The first expression is a Real value to
format. The second expression is
either "
EXPONENTIAL" or "CONCISE".
Outputs the
Real value in the
designated format where
EXPONENTIAL uses exponential
notation with 16 digits of precision,
and
CONCISE outputs the number in a
more readable format while
maintaining numerical accuracy.
GENERATE(expr1, expr2, ...)
See the description in the
“Object-Oriented Facility for
Generating Target Code” section, on
page 2-24.
GENERATE_FILENAME(expr)
Treats the expression as a Type, and
returns the name of the
.tlc file that
will be opened for that
Type.
GENERATE_FUNCTION_EXISTS
(expr, expr)
Determines if a given block function
exists. The first expression is the
same as the first argument to
GENERATE, namely a block scoped
variable containing a
Type. The
second expression is a string that
should match the function name.
GENERATE_TYPE
(expr1, expr2, expr3)
See the description in the
“Object-Oriented Facility for
Generating Target Code” section, on
page 2-24.
Table 2-4: TLC Built-in Functions and Values (Continued)
Special Macro Name Expansion
Vedere la pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 281 282

Commenti su questo manuale

Nessun commento