ユーザー定義のサブシ​ステムのみを抽出する​にはどうすればよいで​すか?

9 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 15 Jun 2018
自作のサブシステムを抽出しようと
find_system(model, 'BlockType', 'SubSystem')
をしたところ、自作以外のマスクサブシステムも取得されます。
ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Jun 2018
ユーザー定義のサブシステムのみを抽出するような区別がないことから、パラメータ設定のみで対応するのは困難と考えられます。
代替案としては、独自のサブシステムに特定の名前をつけるようにして、正規表現オプションをつけることで特定の名前の文字列が含まれるブロックを抽出することが可能です。例えば名前にtestが含まれているブロックをgcsから抽出するには、以下のようにします。
>> find_system(gcs,'regexp','on','Name','test')
詳細は
https://jp.mathworks.com/help/simulink/slref/find_system.html#bu4i7s2

More Answers (0)

Categories

Find more on Author Block Masks in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!