MATLAB Function | Include MATLAB code in models that generate embeddable C code |
Create Model That Uses MATLAB Function Block
Follow workflow for integrating a MATLAB Function block in a Simulink model.
Integrate MATLAB Algorithm in Model
Use a MATLAB Function block to include MATLAB code in a model.
Track Object Using MATLAB Code
Integrate MATLAB code into a Simulink model that estimates the position of an object moving in a two-dimensional space.
Filter Audio Signal Using MATLAB Code
Integrate MATLAB code into a Simulink model for a signal processing application.
Specify argument types for the top-level function in a MATLAB Function block.
Specify argument sizes for the top-level function in a MATLAB Function block.
Units in MATLAB Function Blocks
Specify, visualize, and check consistency of units on MATLAB Function block interfaces.
Pass Simulink parameters and MATLAB variables as arguments to a MATLAB Function block.
Resolve Signal Objects for Output Data
Manage implicit signal resolution at various levels of the model hierarchy.
Create custom block libraries with MATLAB Function blocks.
What Is a MATLAB Function Block?
Add MATLAB functions to Simulink models.
Why Use MATLAB Function Blocks?
Include MATLAB functions in Simulink models.
Edit MATLAB Function block code. Define data arguments, input triggers, and function-call outputs for a MATLAB Function block.
Generate and interpret MATLAB Function reports.
Use Nondirect Feedthrough in a MATLAB Function Block
Disable direct feedthrough to use MATLAB Function blocks in a feedback loop.
Debugging a MATLAB Function Block
Debug a MATLAB Function block function during simulation and check for data range violations.
Prevent Algebraic Loop Errors in MATLAB Function and Stateflow Blocks
Adhere to restrictions for using MATLAB Function blocks, Stateflow® charts, and Truth Tables in feedback loops.