help-octave
[Top][All Lists]
Advanced

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

Re: new to octave - need help with running user-defined function files


From: Henry F. Mollet
Subject: Re: new to octave - need help with running user-defined function files
Date: Mon, 06 Mar 2006 18:00:47 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

I'm not not new to Octave but somehow LOADPATH remains a mystery to me.
Below I give the  LOADPATH on my computer and the .octaverc which I must
have used to set it.
Henry

octave:1> LOADPATH
LOADPATH = 
:/usr/local/bin:/usr/local/libexec/octave/2.1.71/site/oct/powerpc-apple-darw
in8.1.0/octave-forge:/usr/local/share/octave/2.1.71/site/m/octave-forge//::
*******
[~] -bash-2.05b 505$ cat .octaverc
LOADPATH = [ 
':/usr/local/bin:/usr/local/libexec/octave/2.1.71/site/oct/powerpc-apple-dar
win8.1.0/octave-forge:/usr/local/share/octave/2.1.71/site/m/octave-forge//:'
, LOADPATH ];
   EXEC_PATH = [ 
'/usr/local/libexec/octave/2.1.71/site/exec/powerpc-apple-darwin8.1.0:',
EXEC_PATH ];

__gnuplot_raw__ ("set mouse\n;")

automatic_replot = 0
silent_functions = 0
*******



on 3/6/06 5:32 PM, Theresa Bullard at address@hidden wrote:

> Dear Octave List,
> 
> I am new to Octave and have loaded everything successfully and am able
> to run built-in functions and such, but I seem to be having trouble
> with getting Octave to see and run any user-defined functions. I've
> read the online manual sections dealing with this but am not clear on a
> couple points.
> 
> 1. what is the appropriate syntax to use for changing LOADPATH once
> Octave is running?
> 
> 2. Since I haven't figured out how to add another path for Octave to
> search in for function files, I've placed the files in one of the paths
> that is already in DEFAULT_LOADPATH
> (/usr/local/share/octave/2.1.71/site/m//), and when I use the built in
> function 'file_in_loadpath(filename)' it keeps returning empty results
> for the all of the new user-defined function files I've downloaded or
> that I've created myself. Whereas if I search for octave functions in
> the same directory path it will find them. From the manual it seems
> like I can add new function or script files even while Octave is
> running and as soon as I call the new function from the command line it
> should search the directories and then compile it on the fly, if needed
> (based on time-stamp). Is this true? If so, why is it not able to see
> these new function files or script files I've put into the default
> paths? Is there a way to force compile all these functions?
> 
> Any clarification or suggestions for getting started here is much
> appreciated. I'm running Octave through X-11 in Mac OSX (10.3.9)
> 
> Thanks,
> Theresa
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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