How do I set the Simulink model version from the MATLAB command line?

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.

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 2월 6일
편집: MathWorks Support Team 2024년 2월 6일
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개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by