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
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 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by