close_system
Close Simulink model window or block dialog box
Syntax
Description
close_system
closes the current system or subsystem. If the current
system is the top-level model and has been modified, close_system
returns an
error.
Use the gcs
function to determine the current
system.
Note
You cannot use close_system
in a block or menu callback to close the
root-level model. Attempting to close the root-level model in a block or menu callback causes
an error and discontinues the callback execution.
close_system(
closes the specified
model or subsystem, or the block dialog box of the specified block. If the model was only
loaded, that is, with blockOrSys
)load_system
, this syntax clears the model from
memory.
close_system(
specifies additional options using one or more sys
,___,Name,Value
)Name,Value
pair
arguments.
Examples
Input Arguments
Version History
Introduced before R2006aSee Also
bdclose
| gcs
| new_system
| open_system
| save_system
| load_system