Get the parent Model like the Menu command "Go To Parent"

3 vues (au cours des 30 derniers jours)
Twols
Twols le 2 Avr 2013
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.

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 22 Avr 2013
Modifié(e) : Kaustubha Govind le 22 Avr 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 commentaires
jrocket567
jrocket567 le 7 Déc 2022
This was deprecated in R2022b.
Francesco Ambrogi
Francesco Ambrogi le 5 Avr 2023
What is the recomanded way to do that in R2022b?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by