view matlab/padd.m @ 34:439e7d337647

Merged something?
author samer
date Tue, 25 Sep 2012 09:58:10 +0100
parents 27c10ed38592
children
line wrap: on
line source
function padd(varargin)
% padd - Add directories to Matlab path.
%
% Directories are interpreted relative to the directory where this
% function is found.

Root=fileparts(which('padd'));
for i=1:nargin
	arg = varargin{i};
	disp(['adding path ' arg]);
	path(fullfile(Root,arg),path);
end;