[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use LOADPATH command

From: Vinayak Dutt
Subject: Re: how to use LOADPATH command
Date: Tue, 23 Jan 96 11:29:18 CST

Here's a script that i made to change LOADPATH.

----------------- octavepath.m -----------------------
function p = octavepath(str)
% octavepath:
% p = octavepath(str)
% Set or Get the OCTAVE's LOADPATH variable
% if no argument is given, then it returns LOADPATH, else
% it sets LOADPATH to str
        global LOADPATH
        if ( nargin != 1)
                p = LOADPATH;   
----------------- end of octavepath.m ---------------------

I then use this script to add paths to the default octave path. For example if
I want to add /home/vdp/octave to it I would use following commands:

p = octavepath();                               # obtain the current LOADPATH
octavepath([p ':/home/vdp/octave//']);  # update LOADPATH

--Vinayak Dutt

reply via email to

[Prev in Thread] Current Thread [Next in Thread]