Find the name of last inport in sub-system

1 回表示 (過去 30 日間)
Subhash Bhashakhetre
Subhash Bhashakhetre 2020 年 2 月 25 日
回答済み: Monika Jaskolka 2020 年 2 月 26 日
Is there any way to get the name of last inport in sub-system using matlab code?

採用された回答

Monika Jaskolka
Monika Jaskolka 2020 年 2 月 26 日
find_system(gcs, 'SearchDepth', 1, 'BlockType', 'Inport', 'Port', num2str(length(find_system(gcs, 'SearchDepth', 1, 'BlockType', 'Inport'))))
where gcs is the subsystem handle you want to search.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by