Mercurial > hg > dml-home
annotate matlab/padd.m @ 100:a4cd935561d4 dml-dockerised tip
small updates and version pin for cliopatria
author | wolffd <wolffd.mail@googlemail.com> |
---|---|
date | Fri, 29 Jun 2018 17:48:41 +0100 |
parents | 7d34f4b6df69 |
children |
rev | line source |
---|---|
samer@0 | 1 function padd(varargin) |
samer@0 | 2 % padd - Add directories to Matlab path. |
samer@0 | 3 % |
samer@0 | 4 % Directories are interpreted relative to the directory where this |
samer@0 | 5 % function is found. |
samer@0 | 6 |
samer@0 | 7 Root=fileparts(which('padd')); |
samer@0 | 8 for i=1:nargin |
samer@0 | 9 arg = varargin{i}; |
samer@0 | 10 disp(['adding path ' arg]); |
samer@0 | 11 path(fullfile(Root,arg),path); |
samer@0 | 12 end; |
samer@0 | 13 |