How to find all XY Graphs in Simulink model

I would like to find all XY Graphs in a Simulink model, even under masks. The following doesn't work:
find_system(bdroot, 'Sinks', 'XY Graph')
How can I format this command correctly? Also how could I have formatted it using Regexp if I knew the block name contains 'X' but not the full name, 'XY Graph'?

 採用された回答

Jiro Doke
Jiro Doke 2012 年 2 月 20 日

1 投票

As you can see from the FRP for find_system, you can specify additional options, like regexp.
>> find_system(bdroot, 'regexp', 'on', 'name', 'X')
ans =
'testmodel/Subsystem/Subsystem/XY Graph1'
'testmodel/Subsystem/XY Graph'
'testmodel/XY Graph2'

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgrammatic Model Editing についてさらに検索

製品

質問済み:

K E
2012 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by