annotate matlab/padd.m @ 24:27c10ed38592

Added padd.m to remove external dependencies; Matlab output lines now prefixed with '| '
author samer
date Wed, 22 Feb 2012 21:17:52 +0000
parents
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