-
Notifications
You must be signed in to change notification settings - Fork 1
/
pac_setPath.m
35 lines (29 loc) · 1.13 KB
/
pac_setPath.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
% pac_setPath() - set up path for PACT.
% Author:
% Makoto Miyakoshi, 2014 Swartz Center for Computational Neuroscience, INC, UCSD
%
% History:
% 01/13/2020 Makoto. Updated.
% 03/28/2014 ver 1.00 by Makoto. Created.
% Copyright (C) 2014, Makoto Miyakoshi SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1.07 USA
function ok = pac_setPath
% set the check flag false
ok = false;
% find the path to itself
pactRoot = fileparts(which('pac_setPath.m'));
addpath(genpath(pactRoot));
ok = true;