Main Content

MATLAB Function Block Editor

Edit MATLAB® Function block code, define data arguments, input triggers, and function-call outputs for a MATLAB Function block

Customize, edit and debug MATLAB Function block code.

Tools

MATLAB Function Block EditorCreate, edit, and debug MATLAB code in MATLAB Function blocks

Objects

MATLABFunctionConfigurationMATLAB Function block property configuration
MATLABFunctionReportMATLAB function report

Functions

openReportOpen MATLAB function report
closeReportClose MATLAB function report
getReportGenerate MATLAB function report

Topics

Define MATLAB Function Block Data

Define data arguments for MATLAB Function blocks.

Manage the Input Trigger of a MATLAB Function Block

An input trigger is an input that executes the MATLAB Function block when activated.

Manage Function Call Outputs of 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 or Stateflow® chart in the model to execute.

Specify MATLAB Function Block Properties

Descriptions of the properties of a MATLAB Function block.

MATLAB Function Reports

Generate and interpret MATLAB function reports.

Call MATLAB Function Files in MATLAB Function Blocks

Use MATLAB Function blocks to call and execute code written in MATLAB function files.

Troubleshooting

Debug MATLAB Function Blocks

Debug MATLAB Function block code during simulation.