From owner-help-octave at bevo dot che dot wisc dot edu Tue Jan 23 11:29:52 1996 Subject: Re: how to use LOADPATH command From: vdp at us0 dot mayo dot EDU (Vinayak Dutt) To: windy at ksc9 dot th dot com Cc: help-octave at bevo dot che dot wisc dot edu 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; else LOADPATH=str; endif; end ----------------- 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