-
Notifications
You must be signed in to change notification settings - Fork 99
/
ea_checkmacaque.m
36 lines (33 loc) · 983 Bytes
/
ea_checkmacaque.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
function varargout=ea_checkmacaque(varargin)
varargout{1}=''; % make default human
varargout{2}=0;
try
if isfield(varargin{1},'macaquemodus') % options have been entered
options=varargin{1};
varargout{1}='';
if options.macaquemodus
varargout{1}=['toolbox',filesep,'macaque',filesep];
else
varargout{1}='';
end
else % handles have been entered
handles=varargin{1};
if getappdata(handles.leadfigure,'macaquemodus')
varargout{1}=['toolbox',filesep,'macaque',filesep];
else
varargout{1}='';
end
end
if nargin>1
if exist([ea_getearoot,'toolbox',filesep,'macaque'],'file')
varargout{2}=1;
else
varargout{2}=0;
% macaque toolbox not installed. installing:
success=ea_checkinstall('macaque');
if success
varargout{2}=1;
end
end
end
end