IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
addtopath.m
Go to the documentation of this file.
1 %> @brief Adds directory to path with recursion into all subdirectories
2 %> @ingroup misc introspection
3 %> @file
4 function addtopath(directory)
5 
6 dirs = getdirs(directory, {directory});
7 
8 for i = 1:length(dirs)
9  ss = dirs{i};
10  disp(['Adding directory ' ss ' ...']);
11  addpath(ss);
12 end;
function addtopath(in directory)
function getdirs(in direc, in list, in patt_match, in patt_exclude)