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

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

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 子系统에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!