sgwt_setpath : Set paths for SGWT toolbox user should set SGWT_ROOT to be directory where sgwt_toolbox is installed
0001 % sgwt_setpath : Set paths for SGWT toolbox 0002 % 0003 % user should set SGWT_ROOT to be directory where sgwt_toolbox is installed 0004 0005 % This file is part of the SGWT toolbox (Spectral Graph Wavelet Transform toolbox) 0006 % Copyright (C) 2010, David K. Hammond. 0007 % 0008 % The SGWT toolbox is free software: you can redistribute it and/or modify 0009 % it under the terms of the GNU General Public License as published by 0010 % the Free Software Foundation, either version 3 of the License, or 0011 % (at your option) any later version. 0012 % 0013 % The SGWT toolbox is distributed in the hope that it will be useful, 0014 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 % GNU General Public License for more details. 0017 % 0018 % You should have received a copy of the GNU General Public License 0019 % along with the SGWT toolbox. If not, see <http://www.gnu.org/licenses/>. 0020 0021 SGWT_ROOT=[pwd,filesep]; 0022 0023 sgwt_relpathlist={'',... 0024 'utils',... 0025 'demo',... 0026 }; 0027 fprintf('Welcome to sgwt_toolbox. SGWT root directory is %s\n',SGWT_ROOT); 0028 for k=1:numel(sgwt_relpathlist) 0029 sgwt_tmp_pathname=[SGWT_ROOT,sgwt_relpathlist{k}]; 0030 fprintf('adding path %s\n',sgwt_tmp_pathname); 0031 addpath(sgwt_tmp_pathname); 0032 0033 end 0034 clear sgwt_relpathlist sgwt_tmp_pathname