|
a |
|
b/figure1_CloseRequestFcn.m |
|
|
1 |
% --- Executes when user attempts to close figure1. |
|
|
2 |
function figure1_CloseRequestFcn(hObject, eventdata, handles) |
|
|
3 |
% hObject handle to figure1 (see GCBO) |
|
|
4 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
5 |
% handles structure with handles and user data (see GUIDATA) |
|
|
6 |
|
|
|
7 |
% Update the Message Bar |
|
|
8 |
handles.Message_Bar.String = 'Saving Results in Process...'; |
|
|
9 |
|
|
|
10 |
% Update the Threshold based on the new end values of the slider, stops any |
|
|
11 |
% running timers, update box locations |
|
|
12 |
script_update_Threshold_and_display; |
|
|
13 |
|
|
|
14 |
% Remove these helper folders |
|
|
15 |
rmpath 'envelope helpers' 'PolarRectangularConv0' 'helpers' |
|
|
16 |
|
|
|
17 |
% Hint: delete(hObject) closes the figure |
|
|
18 |
delete(hObject); |
|
|
19 |
|
|
|
20 |
fprintf('Compelted\n'); |
|
|
21 |
|
|
|
22 |
end |