如何获取simuli​nk模块的输入和输出​变量名称?。

16 Ansichten (letzte 30 Tage)
华纳公司在线开户【微8785092】
我最近被要求写一个脚本,用来测试公司的一个simulink模型,要求是从表格中读取输入变量的值,然后代入Subsystem中运行,将得到的结果与预期结果相比较,看看是不是有问题。
我用gbch命令查看了一下Subsystem的句柄,其中有一个Blocks的cell项,其中就包括了该Subsystem的所有输入输出变量名,但我想将输入和输出区分开来,不知道该如何操作

Akzeptierte Antwort

华纳公司游戏网址【微8785092】
用PortConnectivity, 里面source是输入,destination是输出。

Weitere Antworten (0)

Kategorien

Mehr zu 子系统 finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!