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

5 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Jun 2011
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

More Answers (0)

Categories

Find more on Schedule Model Components in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2010a

Community Treasure Hunt

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

Start Hunting!