Using Simulink Previous page   Next Page

Using the Embedded MATLAB Function Block


The Embedded MATLAB Function block lets you use MATLAB code in models intended to be deployed as stand-alone executables generated by Real-Time Workshop. The following sections explain how to use the block to create such models.
Introduction to Embedded MATLAB Function Blocks
Overview of the use of Embedded MATLAB Function blocks in Simulink.
Creating an Example Embedded MATLAB Function
How to create an example Simulink model with an Embedded MATLAB Function block that you program.
Debugging an Embedded MATLAB Function
How to debug the Embedded MATLAB function for the example model you create in the previous section.
The Embedded MATLAB Function Editor
Reference of operations available in the Embedded MATLAB Editor.
Typing Function Arguments
How to specify argument types in the Model Explorer.
Sizing Function Arguments
How to specify argument sizes in the Model Explorer.
Parameter Arguments in Embedded MATLAB Functions
How to pass Simulink parameters and MATLAB variables as arguments to an Embedded MATLAB Function block.
Local Variables in Embedded MATLAB Functions
Reference of variable types supported by Embedded MATLAB Function blocks.
Functions in Embedded MATLAB Functions
Rules for calling functions in the MATLAB workspace and using their return values.


Previous page  Profiler Introduction to Embedded MATLAB Function Blocks Next page

© 1994-2005 The MathWorks, Inc.