Browsing the subsystem inside model using mscript
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Aravind Sivanesan
il 5 Ott 2022
Commentato: Benjamin Thompson
il 11 Ott 2022
Im creating a GUI. Is it possible for me to browse the particular subsystem inside the model using mscripts.
Im able to browse the model using uigetfile. But is there any commands which can browse the particular subsystem using any functions.
0 Commenti
Risposta accettata
Benjamin Thompson
il 10 Ott 2022
You can use open_system to open a Simulink model to some subsystem inside the model. The second parameter to open_system should be 'window'.
2 Commenti
Benjamin Thompson
il 11 Ott 2022
Yes you can do this with open_system also. Type "doc open_system" in MATLAB to get examples. Something like:
open_system('main_file/subsystem1/subsystem2', 'window');
The first argument is the full path down to the subsystem level. Note that this may not work if your subsystem is actually a reference model or in a library which is a different file.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Programmatic Model Editing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!