How do I set the Simulink model version from the MATLAB command line?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 27 Juin 2009
Modifié(e) : MathWorks Support Team
le 6 Fév 2024
I want to set the Simulink version of my model from the MATLAB command line. I can query the model version using -
get_param(bdroot,'Modelversion')
But if I want to set the model version using -
set_param(bdroot,'Modelversion',1.2)
I receive the following error:
ERROR: ??? Error using ==> set_param
block_diagram parameter 'Modelversion' is read-only.
Réponse acceptée
MathWorks Support Team
le 6 Fév 2024
Modifié(e) : MathWorks Support Team
le 6 Fév 2024
To change the model version of your current Simulink model from the MATLAB command line, you can use the following command:
set_param(bdroot,'Modelversionformat','3.5')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Programmatic Model Editing 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!