Customize, edit and debug MATLAB Function block code.
Adding Data to a MATLAB Function Block
You can define data arguments for MATLAB Function blocks using the following methods:
Adding Input Triggers to a MATLAB Function Block
An input trigger is an event on the input port that causes the MATLAB Function block to execute.
Adding Function Call Outputs to a MATLAB Function Block
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
MATLAB Function Block Properties
This section describes each property of a MATLAB Function block.
Generate and interpret MATLAB Function reports.
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.
Debugging a MATLAB Function Block
Debug a MATLAB Function block function during simulation and check for data range violations.