How to programmatically find the Simulink saved version for a .sldd dictionary object
I am now creating a MATLAB script to read the release versions in which a .sldd object is created in Simulink/MATLAB.
What I found but not for .sldd objects:
For example, An SLX file activeSuspension.slx’s matlab version it has been saved in can be retrieved using Simulink.MDLInfo object and it’s property ‘ReleaseName’.
mdlInfo= Simulink.MDLInfo(‘activeSuspension’);
matlabVersion=mdlInfo.ReleaseName;
From documentation https://in.mathworks.com/help/simulink/slref/simulink.mdlinfo.html I am aware that MDLInfo is only limited to .slx,.slxp and .mdl files.
My Query:
Now coming to my query, I would like to know if there is any direct API command like MDLInfo or a resuable script available to get the matlab version created for a .sldd file.
Since the metadata is visible in MATLAB UI for a .sldd file I believe there is a solid possibility to have an API command from which the "Saved in Simulink " version can be found, but I am unlucky so far to find one from documentation. Thanks in advance.I am now creating a MATLAB script to read the release versions in which a .sldd object is created in Simulink/MATLAB.
What I found but not for .sldd objects:
For example, An SLX file activeSuspension.slx’s matlab version it has been saved in can be retrieved using Simulink.MDLInfo object and it’s property ‘ReleaseName’.
mdlInfo= Simulink.MDLInfo(‘activeSuspension’);
matlabVersion=mdlInfo.ReleaseName;
From documentation https://in.mathworks.com/help/simulink/slref/simulink.mdlinfo.html I am aware that MDLInfo is only limited to .slx,.slxp and .mdl files.
My Query:
Now coming to my query, I would like to know if there is any direct API command like MDLInfo or a resuable script available to get the matlab version created for a .sldd file.
Since the metadata is visible in MATLAB UI for a .sldd file I believe there is a solid possibility to have an API command from which the "Saved in Simulink " version can be found, but I am unlucky so far to find one from documentation. Thanks in advance. I am now creating a MATLAB script to read the release versions in which a .sldd object is created in Simulink/MATLAB.
What I found but not for .sldd objects:
For example, An SLX file activeSuspension.slx’s matlab version it has been saved in can be retrieved using Simulink.MDLInfo object and it’s property ‘ReleaseName’.
mdlInfo= Simulink.MDLInfo(‘activeSuspension’);
matlabVersion=mdlInfo.ReleaseName;
From documentation https://in.mathworks.com/help/simulink/slref/simulink.mdlinfo.html I am aware that MDLInfo is only limited to .slx,.slxp and .mdl files.
My Query:
Now coming to my query, I would like to know if there is any direct API command like MDLInfo or a resuable script available to get the matlab version created for a .sldd file.
Since the metadata is visible in MATLAB UI for a .sldd file I believe there is a solid possibility to have an API command from which the "Saved in Simulink " version can be found, but I am unlucky so far to find one from documentation. Thanks in advance. #sldd, api, mdlinfo, saved in simulink version MATLAB Answers — New Questions