[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: incude files in standard path
From: |
John Utz |
Subject: |
RE: incude files in standard path |
Date: |
Tue, 3 Jun 1997 07:57:16 -0700 (PDT) |
Hi craig;
I saw your response, so i thought i would send u this...well just
because,,,it works really well.
function p = path(p1,p2)
%
% path, this is a substitute for the Matlab 4.2 'path' command
%
% path returns the value of LOADPATH
% path(p) sets LOADPATH to 'p' and returns the value;
% path(p1,p2) sets LOADPATH to the concatenation of p1 and p2 and
returns th
e value;
% thus: path(path,'xxx') adds 'xxx' to the LOADPATH
% path('xxx',path) ....
%
% by address@hidden 07.12.94
%
global LOADPATH
if(nargin==0) p = LOADPATH ; return; end;
if(nargin==1) LOADPATH = p1; p = LOADPATH; return; end;
if(nargin==2)
LOADPATH = [ p1,':',p2 ];
p = LOADPATH;
return;
end;
*******************************************************************************
John Utz address@hidden
idiocy is the impulse function in the convolution of life