bdclose
Close any or all Simulink model windows unconditionally
Description
bdclose
closes the current model window unconditionally and
without confirmation. Any changes made to the model since it was last saved are
lost. To find out the current model, use gcs
. If a model was only loaded,
the bdclose
function clears the model from memory.
Tip
When you close a model with the bdclose
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")
bdclose
or close_system
function.
bdclose('all')
closes all open model windows, discarding all
changes.