Simulink Reference Previous page   Next Page

Embedded MATLAB Function Block Reference


An Embedded MATLAB Function block lets you compose a MATLAB language function in a Simulink model that generates embeddable code. In an Embedded MATLAB Function block, you create functions with a rich subset of the MATLAB language. Later, when you simulate the model or generate code for a target environment, a function in an Embedded MATLAB Function block generates efficient C code. This code meets the strict memory and data type requirements of embedded target environments. In this way, Embedded MATLAB Function blocks bring the power of MATLAB for the embedded environment into Simulink.
The following sections describe the supported MATLAB features in Embedded MATLAB functions:
Supported Variable Types in Embedded MATLAB Functions
Data types supported by Embedded MATLAB Function blocks.
Operators in Embedded MATLAB Functions
Operators supported by Embedded MATLAB Function blocks.
Embedded MATLAB Run-Time Function Library
Lists of run-time library functions that you can call in an Embedded MATLAB function.
Unsupported MATLAB Features and Limitations
Features not supported by Embedded MATLAB Function blocks.


Previous page  System Section Supported Variable Types in Embedded MATLAB Functions Next page

© 1994-2005 The MathWorks, Inc.