필터 지우기
필터 지우기

How can I find out which version was used to create a particular model in Simulink 7.3 (R2009a)?

조회 수: 45 (최근 30일)
I am looking for a way to prevent forward compatibility issues and therefore would like to know the version of Simulink used to create a particular model so that I can compare with the current version of Simulink that I am using.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2016년 7월 13일
This enhancement has been incorporated in Release 2009b (R2009b). For previous product releases, read below for any possible workarounds:
There is no easy way of getting the version of Simulink in which the model was created. It can be found out from reading the model file (.mdl) as text.
Use the attached function 'createdIn' to find the same. Download the MATLAB file to the current directory or to a folder which is on the MATLAB path. For example to find out in which was the demo model vdp.mdl created in, type the following at the MATLAB command prompt:-
createdIn('vdp.mdl')
Starting R2009b release , it will be possible to retrieve this information using the following
info = Simulink.MDLInfo('mymodel') % works only in releases after R2009b
modelVer = info.SimulinkVersion
modelVer = get_param(modelname, 'versionLoaded')
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 9월 11일
If you are using those older versions use the attached function.
If you are using r2009b or later then you can use the built-in query even for old models.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

제품


릴리스

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by