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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 15 de Jun. de 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

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by