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

  • 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 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
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 281 282

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

Žádné komentáře