| Simulink Reference | ![]() |
Close a Simulink system window or a block dialog box.
Syntax
close_system close_system('sys') close_system('sys', saveflag) close_system('sys', 'newname') close_system('blk')
Description
close_system with no arguments closes the current system or subsystem window. If the current system is the top-level system and it has been modified, close_system asks if the changed system should be saved to a file before removing the system from memory. The current system is defined in the description of the gcs command.
close_system('sys') closes the specified system or subsystem window.
close_system('sys', saveflag) closes the specified top-level system window and removes it from memory:
saveflag is 0, the system is not saved.
saveflag is 1, the system is saved with its current name.
close_system('sys', 'newname') saves the specified top-level system to a file with the specified new name, then closes the system.
close_system('blk'), where 'blk' is a full block pathname, closes the dialog box associated with the specified block or calls the block's CloseFcn callback parameter if one is defined. Any additional arguments are ignored.
Examples
This command closes the current system.
This command closes the vdp system.
This command saves the engine system with its current name, then closes it.
This command saves the mymdl12 system under the new name testsys, then closes it.
This command closes the dialog box of the Unit Delay block in the Combustion subsystem of the engine system.
See Also
| bdroot | compare_model | ![]() |