Main Content

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, string scalar, or cell array. To specify multiple systems to close, specify a cell array of system names.

Example: bdclose("vdp")

Example: bdclose({'vdp','f14'})

Data Types: char | string | cell

Version History

Introduced before R2006a

expand all