ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 15 Juin 2018
Réponse apportée : MathWorks Support Team
le 15 Juin 2018
自作のサブシステムを抽出しようと
find_system(model, 'BlockType', 'SubSystem')
をしたところ、自作以外のマスクサブシステムも取得されます。
ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
Réponse acceptée
MathWorks Support Team
le 15 Juin 2018
ユーザー定義のサブシステムのみを抽出するような区別がないことから、パラメータ設定のみで対応するのは困難と考えられます。
代替案としては、独自のサブシステムに特定の名前をつけるようにして、正規表現オプションをつけることで特定の名前の文字列が含まれるブロックを抽出することが可能です。例えば名前にtestが含まれているブロックをgcsから抽出するには、以下のようにします。
>> find_system(gcs,'regexp','on','Name','test')
詳細は
https://jp.mathworks.com/help/simulink/slref/find_system.html#bu4i7s2
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Author Block Masks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!