Stateflow User's Guide Previous page   Next Page

Introduction to Embedded MATLAB Functions

A Stateflow Embedded MATLAB function contains an Embedded MATLAB language function. The Embedded MATLAB language is a powerful subset of the MATLAB language that, like the rest of Stateflow, generates efficient C code for embeddable applications.

Simulink uses Stateflow Embedded MATLAB functions to implement Embedded MATLAB blocks in Simulink models. See Using the Embedded MATLAB Function Block in Simulink documentation for more information on Embedded MATLAB blocks in Simulink.

You build the following model in Building a Simulink Model with a Stateflow Embedded MATLAB Function:

In addition to supporting MATLAB syntax, a Stateflow Embedded MATLAB function can call any of the following functions:


Previous page  Using Embedded MATLAB Functions Building a Simulink Model with a Stateflow Embedded MATLAB Function Next page

© 1994-2005 The MathWorks, Inc.