フィルターのクリア

Search by line name

4 ビュー (過去 30 日間)
Mariam Achraf
Mariam Achraf 2020 年 8 月 5 日
コメント済み: Fangjun Jiang 2020 年 8 月 6 日
In a multi-level model, is it possible to get all the ouports and line names as well using command line ?
  2 件のコメント
madhan ravi
madhan ravi 2020 年 8 月 5 日
Are you talking about SIMULINK?
Mariam Achraf
Mariam Achraf 2020 年 8 月 5 日
yes

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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 8 月 5 日
set 'FindAll' to be 'On' to search for signal lines. For outports, you need to clarify whether it is Outport block or outports of any block.
>> f14
>> find_system('f14','FindAll','On','type','line','name','w')
ans =
118.0001
117.0001
116.0001
  2 件のコメント
Mariam Achraf
Mariam Achraf 2020 年 8 月 6 日
Outport blocks
Fangjun Jiang
Fangjun Jiang 2020 年 8 月 6 日
Then it is straightforward to search for 'BlockType','Outport'. Once found, get its 'LineHandles'

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by