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.
Tip
When you close a model with the close_system function, the model is
no longer loaded. To close a model but keep the model loaded, use this command instead, where
model is the handle or name of the
model.
set_param(model,Open="off")close_system or bdclose function.
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
Name-Value Arguments
Version History
Introduced before R2006aSee Also
bdclose | gcs | new_system | open_system | save_system | load_system