Main Content

Integrate Basic Algorithms Using MATLAB Function Blocks

Add MATLAB® algorithms to Simulink® models

The MATLAB Function block allows you to add MATLAB functions to Simulink models. Use this block to create algorithms that are easier to write in the textual language of MATLAB than in the graphical language of Simulink. Using MATLAB Function blocks, you can generate readable, efficient, and compact C/C++ code for deployment to desktop and embedded applications.