-
Notifications
You must be signed in to change notification settings - Fork 58
/
ptk.m
39 lines (30 loc) · 951 Bytes
/
ptk.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
% ptk. 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.
%
% 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
clear all classes %#ok<CLALL,CLCLS>
PTKAddPaths('force');
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);
% Remove our handle to the splash screen and the GUI
clear splash_screen ans