|
a |
|
b/Ultrasound_Analyse_OpeningFcn.m |
|
|
1 |
% --- Executes just before Ultrasound_Analyse is made visible. |
|
|
2 |
function Ultrasound_Analyse_OpeningFcn(hObject, eventdata, handles, varargin) |
|
|
3 |
% This function has no output args, see OutputFcn. |
|
|
4 |
% hObject handle to figure |
|
|
5 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
6 |
% handles structure with handles and user data (see GUIDATA) |
|
|
7 |
% varargin unrecognized PropertyName/PropertyValue pairs from the |
|
|
8 |
% command line (see VARARGIN) |
|
|
9 |
|
|
|
10 |
% Script to initialize the variables |
|
|
11 |
set_the_variables_update_handles; |
|
|
12 |
|
|
|
13 |
% Update handles structure |
|
|
14 |
guidata(hObject, handles); |
|
|
15 |
|
|
|
16 |
% UIWAIT makes Ultrasound_Analyse wait for user response (see UIRESUME) |
|
|
17 |
% uiwait(handles.figure1); |
|
|
18 |
|
|
|
19 |
% If the file does not exist, close the GUI |
|
|
20 |
if ~handles.simulation && ~handles.file_exist |
|
|
21 |
%Close the GUI |
|
|
22 |
close all force |
|
|
23 |
else |
|
|
24 |
% Clear the screen and print the message |
|
|
25 |
fprintf('Gui Started Successfully!\n'); |
|
|
26 |
end |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
end |