How can I save my model, with various library dependencies , build in Simulink 7.5 (R2010a) to an older version of Simulink?

3 次查看(过去 30 天)
I have a model build in Simulink 7.5 (R2010a). This model depends on many toolboxes as well as other customer libraries. I would like to save this model using "Save as" to a previous version of Simulink and run the same in previous version.

采纳的回答

MathWorks Support Team
To save model with library dependencies to an older version of Simulink carry out the following:
1. Using model dependency viewer find dependent libraries
2. Save all the libraries and the model into older version of simulink.
One can automate this process using the command line version of the files dependencies. The automated script might look as follows
mdl = 'mymod';
load_system(mdl);
[files, missing, depfile, manifestfile] = ...
dependencies.fileDependencyAnalysis(mdl);
for i= 1:length(files)
[pathstr, name, ext] = fileparts(files{i});
if strcmp(ext,'.mdl')
load_system(name)
save_system(name, name, 'SaveAsVersion', 'R2007b');
close_system(name,0)
end
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

尚未输入任何标签。

产品


版本

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by