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

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

Réponse acceptée

MathWorks Support Team
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

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!