Using Simulink     Search    Help Desk 
close_system    Examples   See Also

Close a Simulink system window or a block dialog box.

Syntax

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, then 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 (see "gcs").

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:

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 closes the mymdl12 system with the 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



[ Previous | Help Desk | Next ]