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
2011-6-15
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!