Export model, library, or project for use in previous version of Simulink
exports
the model or library exported_file
= Simulink.exportToVersion(modelname
,target_filename
,version
)modelname
to a file named target_filename
in
a format that the specified previous Simulink® version
can
load.
If the system contains functionality not supported by the specified Simulink software version, the command removes the functionality and replaces any unsupported blocks with empty masked subsystem blocks colored yellow. As a result, the converted system may generate different results.
The save_system
ExportToVersion
option
is a legacy option for this functionality that is also supported.
specifies additional options as one or more name-value pair arguments.exported_file
= Simulink.exportToVersion(modelname
,target_filename
,version
,Name,Value
)
exports the project exported_project
= Simulink.exportToVersion(proj
,zipfilename
,version
)proj
to a ZIP file
zipfilename
in a format that the specified previous
Simulink
version
can load.
Simulink.exportToVersion
does not support exporting external test
harnesses to previous releases.
For models with external test harnesses,
Simulink.exportToVersion
automatically converts them
to internal test harnesses.
For projects containing models with external test harnesses,
Simulink.exportToVersion
exports the projects and
reports the test harnesses as missing files.