主要内容

MATLAB Function 模块编辑器

编辑 MATLAB Function 模块代码,定义变量、输入触发器和函数调用输出

自定义、编辑和调试 MATLAB Function 模块代码。定义变量和其他端口,例如输入触发器和函数调用输出。

工具

MATLAB Function 模块编辑器Create, edit, and debug MATLAB code in MATLAB Function blocks

模块

MATLAB FunctionSimulink 模型中包含 MATLAB 代码

对象

MATLABFunctionConfigurationMATLAB Function block property configuration
MATLABFunctionReportMATLAB function report

函数

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

主题

疑难解答

调试 MATLAB Function 模块

在仿真期间调试 MATLAB Function 模块代码。

精选示例