Exporting the model browser list of subsystems - Simulink

3 visualizaciones (últimos 30 días)
Charles
Charles el 5 de Oct. de 2018
Comentada: Charles el 18 de Dic. de 2024
We need to divide and conquer a review of a fairly large model library. Is there a way to generate a list of subsystems? In the past I'd screenshot the Model Browser and paste in Excel but I'm sure there's an easier way. Thanks in advance!

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 5 de Oct. de 2018
find_system(bdroot,'Blocktype','SubSystem')
check for other options of find_system
  3 comentarios
Fangjun Jiang
Fangjun Jiang el 18 de Dic. de 2024
This is in R2022b. If it does not work in R2017b, then temorarily save the library file to a model file.
>> open_system('simulink')
>> find_system('simulink','Blocktype','SubSystem')
ans =
152×1 cell array
{'simulink/Additional Math↵& Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete/Fixed-Point↵State-Space' }

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by