Use MATLAB Function block to implement MATLAB functions to Simulink models to deploy code and embed code in processors. Using MATLAB Function block, you can generate readable, efficient, and compact C/C++ code for deployment to desktop and embedded applications.
|MATLAB Function||Include MATLAB code in models that generate embeddable C code|
|Configure MATLAB Function block properties programmatically|
Add MATLAB functions to Simulink models.
Follow workflow for integrating a MATLAB Function block in a Simulink model.
Manage implicit signal resolution at various levels of the model hierarchy.
Create custom block libraries with MATLAB Function blocks.
Integrate a MATLAB Function block into your Simulink model.
Integrate MATLAB code into a Simulink model that estimates the position of an object moving in a two-dimensional space.
Integrate MATLAB code into a Simulink model for a signal processing application.
Use MATLAB Function block to call external C code and how to control enumeration and bus typedefs.
Debug a MATLAB Function block function during simulation and check for data range violations.
Adhere to restrictions for using MATLAB Function blocks, Stateflow® charts, and Truth Tables in feedback loops.