ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 15 de Jun. de 2018
Respondida: MathWorks Support Team
el 15 de Jun. de 2018
自作のサブシステムを抽出しようと
find_system(model, 'BlockType', 'SubSystem')
をしたところ、自作以外のマスクサブシステムも取得されます。
ユーザー定義のサブシステムのみを抽出するにはどうすればよいですか?
Respuesta aceptada
MathWorks Support Team
el 15 de Jun. de 2018
ユーザー定義のサブシステムのみを抽出するような区別がないことから、パラメータ設定のみで対応するのは困難と考えられます。
代替案としては、独自のサブシステムに特定の名前をつけるようにして、正規表現オプションをつけることで特定の名前の文字列が含まれるブロックを抽出することが可能です。例えば名前にtestが含まれているブロックをgcsから抽出するには、以下のようにします。
>> find_system(gcs,'regexp','on','Name','test')
詳細は
https://jp.mathworks.com/help/simulink/slref/find_system.html#bu4i7s2
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Author Block Masks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!