Get the parent Model like the Menu command "Go To Parent"
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello guys!
Is it possible to find out (using a script) the parent of a referenced model like Simulink does with "View > Go To Parent"? This command knows what was the last parent in which the user opened the child model.
0 Commenti
Risposte (1)
Kaustubha Govind
il 22 Apr 2013
Modificato: Kaustubha Govind
il 22 Apr 2013
This is undocumented, so use with caution because there is a possibility it won't work in all (past/future) releases:
>> get_param('modename', 'ModelReferenceParent')
I would recommend submitting an enhancement request to MathWorks Tech Support to have a published API for this.
3 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Environment Customization in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!