diff matlab/padd.m @ 0:7d34f4b6df69

Initial check-in (partial)
author samer
date Sun, 18 Jan 2015 16:18:01 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/matlab/padd.m	Sun Jan 18 16:18:01 2015 +0000
@@ -0,0 +1,13 @@
+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;
+