How to change the version of simulink model?

42 vues (au cours des 30 derniers jours)
YoungLae
YoungLae le 21 Août 2019
Hello,
I want to change the version information configuration of simulink model.
Currently if I save the model then the version is increased automatically but I don't want to use this function
so can I disable this automatic version incremental function?
In other words, I want to change the version information only when I want it.
Thank you.

Réponses (2)

Kuldeep Singh
Kuldeep Singh le 30 Sep 2019
Modifié(e) : Kuldeep Singh le 30 Sep 2019
You can change the model version under Model Explorer > History
If you want to disable it, remove the AutoIncrement Macro from the settings.
More details can be found here.

Tamás Zilahi-Szabó
Tamás Zilahi-Szabó le 17 Fév 2020
If you want to change the model version, for example to 1.10, then:
>> set_param(bdroot,'Modelversionformat','1.10')
If you want to change the model version with Auto-Incrementation, then:
>> set_param(bdroot,'Modelversionformat','1.%<AutoIncrement: 10>')
This way, the second part (.10) will be automatically incremented, every time you save the model.
(R2017b)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by