ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
9 views (last 30 days)
Show older comments
MathWorks Support Team
on 15 Jun 2018
Answered: MathWorks Support Team
on 15 Jun 2018
自作のサブシステムを抽出しようと
find_system(model, 'BlockType', 'SubSystem')
をしたところ、自作以外のマスクサブシステムも取得されます。
ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
Accepted Answer
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
0 Comments
More Answers (0)
See Also
Categories
Find more on Author Block Masks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!