Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

MATLAB Function 模块编辑器

编辑 MATLAB® Function 模块代码,为 MATLAB Function 模块定义数据参数、输入触发器和函数调用输出

自定义、编辑和调试 MATLAB Function 模块代码。

对象

MATLABFunctionConfigurationMATLAB Function block property configuration
MATLABFunctionReportMATLAB function report

函数

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

主题

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.

疑难解答

调试 MATLAB Function 模块

在仿真期间调试 MATLAB Function 模块函数,并检查数据范围违规。