view matlab/padd.m @ 25:de95213cdcc2

swiplml now sets DYLD_FALLBACK_LIBRARY_PATH based on output of matlab -e
author samer
date Wed, 22 Feb 2012 21:36:34 +0000
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;