bdclose

Close any or all Simulink system windows unconditionally

Description

bdclose closes the current system window unconditionally and without confirmation. Any changes made to the system since it was last saved are lost. To find out the current system, use gcs. If a model was only loaded, bdclose clears the model from memory.

example

bdclose(sys) closes the specified system window, discarding all changes.

bdclose('all') closes all open system windows, discarding all changes.

Examples

collapse all

Open the vdp system. Then close it without saving any changes.

open_system(vdp)
bdclose('vdp')

Input Arguments

collapse all

System to close, specified as a character vector or string scalar.

Example: "vdp"

Introduced before R2006a