How to get input and output names of a below subsystem?

13 ビュー (過去 30 日間)
Sai
Sai 2019 年 4 月 3 日
回答済み: Dhanashree Mohite 2019 年 4 月 8 日
Is it possible to get names of inputs and outputs without going inside the subsystem using script?
Here inputs are coming from other subsystem/blocks and outputs are going to other subsystem/blocks.
Subsystem.JPG
expected input names : violet,indigo,blue,green
expected output names : yellow,red,white,black
  2 件のコメント
Sai
Sai 2019 年 4 月 4 日
Thank you but this is will nor help in my case.
I want to check the names without going inside the subsystem.

サインインしてコメントする。

回答 (1 件)

Dhanashree Mohite
Dhanashree Mohite 2019 年 4 月 8 日
As per my understanding you can use ‘find_system’ command with Blocktype and SearchDepth parameters.
>> find_system('modelName','SearchDepth',2,'BlockType','Inport')
>> find_system('modelName','SearchDepth',2,'BlockType','Outport')
Refer below link for more understanding:

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

タグ

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by