-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwaitfunc.m
24 lines (23 loc) · 812 Bytes
/
waitfunc.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
function waitfunc(on,reason, handles)
switch on
case 1
txt = 'Please wait...';
switch reason
case 'import'
txt = {'Importing data from Excel';'Please wait...'};
case 'open'
txt = {'Opening data file';'Please wait...'};
case 'retrieve'
txt = {'Retrieving data';'Please wait...'};
case 'theory calc'
txt = {'[Theory] Calculating';'Please wait...'};
case 'rebuilt'
txt = {'Rebuilding database';'Please wait...'};
case 'fit'
txt = {'Fitting cureve';'Please wait...'};
end %switch
set(handles.waittext,'String',txt,'Visible','on')
case 0
set(handles.waittext,'Visible','off')
end %switch
pause(.001)