0% found this document useful (0 votes)
119 views1 page

MATLAB Script: Close Windows Prompt

The document contains MATLAB code to check if any windows are open, prompt the user to close them all, and then clear variables and the command window if the user selects yes.

Uploaded by

ALgy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views1 page

MATLAB Script: Close Windows Prompt

The document contains MATLAB code to check if any windows are open, prompt the user to close them all, and then clear variables and the command window if the user selects yes.

Uploaded by

ALgy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

if not(isempty(get(0,'Children')))

if strcmp(questdlg('Do you want to close all windows?','ACHTUNG!'),'Yes')


close all
end
end
clear;
clc;

You might also like