Home > src > setPaths.m

setPaths

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 if exist('/afs/nada.kth.se/home/cvap/rjo/Forskning/Arbete/Projekt/Bridge/matlab/src') > 0
0002   BASE_PATH = '/afs/nada.kth.se/home/cvap/rjo/Forskning/Arbete/Projekt/Bridge/matlab/src'
0003 elseif exist('M:\Bridge\winter 2004\src') > 0
0004   BASE_PATH = 'M:\Bridge\winter 2004\src'
0005 elseif exist(['C:\Documents and Settings\Ronnie\Mina dokument\Work\' ...
0006               'Projekt\Bridge\src']) > 0
0007   BASE_PATH = 'C:\Documents and Settings\Ronnie\Mina dokument\Work\Projekt\Bridge\src'
0008 elseif exist(['F:\Work\Matlab\Bridge05\']) > 0
0009   BASE_PATH = 'F:\Work\Matlab\Bridge05\'
0010 else
0011   BASE_PATH = ''
0012 end
0013 
0014 ALL_PATHS = BASE_PATH;
0015 RM_PATHS = ''; % paths (and subpaths) in ALL_PATHS that should not
0016                % be included
0017 
0018 v = version;
0019 if v(1)=='5'
0020   addpath(genpath(ALL_PATHS,0))
0021   rmpath(RM_PATHS)
0022 
0023 else
0024   addpath(genpath(ALL_PATHS))
0025   rmpath(RM_PATHS)
0026 
0027 end
0028 % fails to add directories which only contain directories but no regular files
0029 % e.g., BNT/inference. Hence we add dummy files to such directories.
0030 % This bug has been fixed in matlab 6.5
0031

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003