最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

scripting - Programmatically find the "Saved in Simulink version" for a .sldd object in MatlabSimulink - Stack

programmeradmin1浏览0评论

I am now creating a MATLAB script to read the release versions in which a sldd object is created in Simulink/MATLAB.

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 .mdlinfo.html I am aware that MDLInfo is only limited to .slx,.slxp and .mdl files.

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论