Mercurial > hg > plml
annotate matlab/padd.m @ 37:89688ebc447f tip
Deprecating this repository.
author | samer |
---|---|
date | Mon, 05 Jan 2015 17:42:03 +0000 |
parents | 27c10ed38592 |
children |
rev | line source |
---|---|
samer@24 | 1 function padd(varargin) |
samer@24 | 2 % padd - Add directories to Matlab path. |
samer@24 | 3 % |
samer@24 | 4 % Directories are interpreted relative to the directory where this |
samer@24 | 5 % function is found. |
samer@24 | 6 |
samer@24 | 7 Root=fileparts(which('padd')); |
samer@24 | 8 for i=1:nargin |
samer@24 | 9 arg = varargin{i}; |
samer@24 | 10 disp(['adding path ' arg]); |
samer@24 | 11 path(fullfile(Root,arg),path); |
samer@24 | 12 end; |
samer@24 | 13 |