Technical data
2 
Working with the Target Language
2-30
defined in uppercase so that they are visually distinct from other parameters 
in the 
.rtw file, and by convention, from user-defined parameters.
Table 2-4: TLC Built-in Functions and Values
Special Macro Name Expansion
CAST(expr, expr)
The first expression must be a string 
that corresponds to one of the type 
names in the Target Language 
Values table, and the second 
expression will be cast to that type. 
One application of this is to allow 
outputs to be generated as 
floating-point values.
EXISTS(expr)
expr
 must be a string. If the 
identifier is not currently in scope, 
the result is 
0. If the identifier is in 
scope, the result is 
1. expr can be a 
single identifier or an expression 
involving the 
. and [] operators.
FEVAL(expr1, expr2)
Performs an evaluation in MATLAB. 
See the “FEVAL Function” section 
starting on page 2-35 for more 
information.
FILE_EXISTS(expr)
expr
 must be a string. If a file by the 
name 
expr does not exist on the path, 
the result is 
0. If a file by that name 
exists on the path, the result is 
1.










