Simulink Reference | ![]() ![]() |
Syntax
Description
save_system
saves the current top-level system to a file with its current name.
save_system('sys')
saves the specified top-level system to a file with its current name. The system must be open.
save_system('sys', 'newname')
saves the specified top-level system to a file with the specified new name. The new name can be a file name, in which case Simulink saves the system in the working directory, or a fully qualified pathname. On UNIX, the fully qualified pathname can start with a tilde (~), signifying your home directory. The system to be saved must be open.
Example
This command saves the current system.
This command saves the vdp
system.
This command saves the vdp
system to a file with the name 'myvdp'
.
See Also
![]() | replace_block | set_param | ![]() |