Customize, edit and debug MATLAB Function block code.
You can define data arguments for MATLAB Function blocks using the following methods:
An input trigger is an event on the input port that causes the MATLAB Function block to execute.
A function call output is an event on the output port of a MATLAB Function block that causes a Function-Call Subsystem block in the Simulink® model to execute.
Explains how to use the Ports and Data Manager to define data arguments, input triggers, and function-call outputs for a MATLAB Function block
This section describes each property of a MATLAB Function block.
Generate and interpret MATLAB Function reports.
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.
Debug a MATLAB Function block function during simulation and check for data range violations.