forked from tomdoel/pulmonarytoolkit
-
Notifications
You must be signed in to change notification settings - Fork 15
/
PulmonaryToolkit.m
43 lines (35 loc) · 1.11 KB
/
PulmonaryToolkit.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
function PulmonaryToolkit()
% PTKRun. Runs the Pulmonary Toolkit user interface
%
%
% Licence
% -------
% Part of the TD Pulmonary Toolkit. https://github.com/tomdoel/pulmonarytoolkit
% Author: Tom Doel, 2012. www.tomdoel.com
% Distributed under the GNU GPL v3 licence. Please see website for details.
%
if ~isdeployed
% Clear command window
clc
% Add all necessary paths
PTKAddPaths();
% Update the repository
updated = PTKUpdate();
% We may need to add new paths as a result of an update
if updated
PTKAddPaths('force');
end
end
% Create the splash screen - do this early so the user knows something is
% hapenning
splash_screen = MimSplashScreen.GetSplashScreen(PTKAppDef());
splash_screen.ShowAndHold('Initialising');
% Verify that an appropriate version of Matlab is being run
PTKCheckMatlabVersion();
% Run the toolkit gui
PTKGui(splash_screen);
if ~isdeployed
% Remove our handle to the splash screen and the GUI
clear splash_screen ans
end
end