Mercurial > hg > plml
annotate matlab/padd.m @ 27:555b29024dab
Switched to use_foreign_library/1 and replaced plm_state with simpler current_engine/1
author | samer |
---|---|
date | Fri, 24 Feb 2012 18:11:23 +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 |