forked from helgestein/htAx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallbackButtonClose.m
46 lines (41 loc) · 1.2 KB
/
callbackButtonClose.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function callbackButtonClose(obj, evt, ternHandles, specHandles, ECHandles)
%CALLBACKBUTTONCLOSE closes the GUI
fTernButtons = ternHandles.fTernButtons;
fTernDiagram = ternHandles.fTernDiagram;
fSpecButtons = specHandles.fSpecButtons;
fSpecPlot = specHandles.fSpecPlot;
fECButtons = ECHandles.fECButtons;
fECPlot = ECHandles.fECPlot;
ECInfo = fECPlot.UserData;
close(fTernButtons);
if ishandle(fTernDiagram) ~= 0
close(fTernDiagram);
end
if ishandle(fSpecButtons) ~= 0
close(fSpecButtons);
end
if ishandle(fSpecPlot) ~= 0
close(fSpecPlot);
end
if ishandle(fECButtons) ~= 0
close(fECButtons);
end
if ishandle(fECPlot) ~= 0
close(fECPlot);
end
if ishandle(ECInfo.fBinaryPlot) ~= 0
close(ECInfo.fBinaryPlot);
end
if ishandle(ECInfo.fTernTafelSurf) ~= 0
close(ECInfo.fTernTafelSurf);
end
if ishandle(ECInfo.fTernTafelScatter) ~= 0
close(ECInfo.fTernTafelScatter);
end
if ishandle(ECInfo.fTernOnsetSurf) ~= 0
close(ECInfo.fTernOnsetSurf);
end
if ishandle(ECInfo.fTernOnsetScatter) ~= 0
close(ECInfo.fTernOnsetScatter);
end
end