-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_PupilPlotGUI.m
29 lines (25 loc) · 805 Bytes
/
start_PupilPlotGUI.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
function start_PupilPlotGUI(varargin)
% This is the main function for opening the gui
% Examples:
% >>start_PupilPlotGUI
% Simply starts the PupilPlotGUI
% >>start_PupilPlotGUI('nogui')
% Sets the paths for PupilPlot: functions can be used without the gui
cd(fileparts(which(mfilename)));
currentLocation = pwd;
pathSetLocation = [currentLocation filesep 'Functions' filesep 'FileProcessing'];
try
addpath(pathSetLocation)
catch
warndlg('Couldn''t find all the folders needed, which means I can''t run','Fatal Error')
return
end
% set the paths
successPath = setPupilPlotPaths(currentLocation);
if ~successPath
warndlg('Couldn''t find all the folders needed, which means I can''t run','Fatal Error')
return
end
if isempty(varargin)
pupilPlotGUI({currentLocation})
end