Integrate MATLAB Code into Simulink
Integrate existing MATLAB® code into Simulink®
You can integrate your MATLAB code into Simulink using the MATLAB Function block and MATLAB System block. Use MATLAB Function block to integrate simple functions. Use the MATLAB System block to integrate code that requires state dynamics, large streaming data interface, and interaction with the Simulink engine.
Blocks
MATLAB Function | Include MATLAB code in Simulink models |
MATLAB System | Include System object in model |
Topics
- Implement MATLAB Functions in Simulink with MATLAB Function Blocks
Use MATLAB Function blocks to implement MATLAB code in Simulink models.
- Create Custom Blocks Using MATLAB System Block and System objects
Implement your own algorithms using System objects.