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

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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su 子系统 in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!