Stateflow |
 |
MATLAB Functions and Data
You can call MATLAB functions and access MATLAB workspace variables in action language, using the ml
namespace operator or the ml
function. See the following sections:
- ml Namespace Operator -- Shows you how to use MATLAB workspace variables or call MATLAB functions through the
ml
namespace operator.
- ml Function -- Shows you how to use MATLAB functions through the
ml
function.
- ml Expressions -- Shows you how to mix ml namespace operator and
ml
function expressions along with Stateflow data in larger expressions.
- ml Data Type -- Shows you how to use the MATLAB data type to keep MATLAB data in Stateflow instead of in the MATLAB workspace.
- Inferring Return Size for ml Expressions -- Gives you the rules for providing enough information to infer the size of the values returned from the
ml
namespace operator and the ml function in larger action language expressions.
Caution
Because MATLAB functions are not available in a target environment, do not use the ml namespace operator and the ml function if you plan to build an RTW target that includes code from Stateflow Coder.
|
| Calling User-Written C Code Functions | | ml Namespace Operator |  |