Simulink Reference Previous page   Next Page

Supported Variable Types in Embedded MATLAB Functions

Embedded MATLAB functions support a subset of MATLAB data types for input (argument) and output (return) variables, and variables local to the function. This section lists and describes the data types supported in Embedded MATLAB functions, along with any exceptions or deviations from MATLAB behavior.

Embedded MATLAB functions support scalar, vector, and matrix (two-dimensional) variables of the types represented by the following cast functions:

Type/Function
Description
char
Character array (string)
complex
Complex data. Cast function takes real and imaginary components. See Using Complex Data in Embedded MATLAB Functions in Simulink online documentation.
double
Double-precision floating point
int8, int16, int32
Signed integer
logical
Boolean true or false
single
Single-precision floating point
uint8, uint16, uint32
Unsigned integer


Previous page  Embedded MATLAB Function Block Reference Operators in Embedded MATLAB Functions Next page

© 1994-2005 The MathWorks, Inc.