How to set the 'Model name' in Model Reference via MATLAB command?

Is there a MATLAB command for entering the Model name in the Model reference?
I have several such Model subsystems in my Simulink model and I'm looking for option to update the reference model via MATLAB command.

 Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 12 Jan 2023
get_param(Block,'ModelName')
get_param(Block,'ModelFile')

Plus de réponses (0)

Catégories

En savoir plus sur Create Large-Scale Model Components dans Centre d'aide et File Exchange

Produits

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by