Main Content
save
Save contents of model workspace to a MAT-file
Syntax
Description
save(
saves the variables in the model workspace represented by the
mdlWks
,fileName
)Simulink.ModelWorkspace
object mdlWks
to the
MAT-file specified by fileName
.
When you set the DataSource
property of the model workspace
to 'MAT-File'
or 'MATLAB File'
, to save to the
file that acts as the external data source of the model, use saveToSource
instead of save
.
Examples
Input Arguments
Version History
Introduced before R2006a