help-octave
[Top][All Lists]
Advanced

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

Re: How do I just load (read) a file? (beginner's question)


From: Henry F. Mollet
Subject: Re: How do I just load (read) a file? (beginner's question)
Date: Mon, 13 Jun 2005 09:38:29 -0700
User-agent: Microsoft-Entourage/10.1.1.2418

I have octave-forge on the desktop and below last item of LOADPATH includes
the path for octave to find m files in octave forge. There is also a
DEFAULT_LOADPATH which must have been created when I installed octave 2.1.46
some time ago using Fink. When I use the function file 'path.m' without an
argument then my LOADPATH is displayed in an easy to read format. However,
the DEFAULT_LOADPATH are not included which I don't understand. path.m can
also be used to modify the LOADPATH but I don't know how it works because
the instructions don't give an example. I used .octaverc and a text editor
to enter what I needed.
Henry


octave:1> LOADPATH
LOADPATH = 
::/sw/bin:/sw/share/doc/octave/examples:/Users/mollet/CandO/epstk2:/Users/mo
llet/Desktop/usr/local/share/octave/2.1.55/site/m/octave-forge//

octave:2> DEFAULT_LOADPATH
DEFAULT_LOADPATH = 
.:/sw/lib/octave/2.1.46/site/oct/powerpc-apple-darwin6.6//:/sw/lib/octave/si
te/oct/powerpc-apple-darwin6.6//:/sw/share/octave/2.1.46/site/m//:/sw/share/
octave/site/m//:/sw/lib/octave/2.1.46/oct/powerpc-apple-darwin6.6//:/sw/shar
e/octave/2.1.46/m//

octave:3> path
LOADPATH contains the following directories:
  /sw/bin
  /sw/share/doc/octave/examples
  /Users/mollet/CandO/epstk2
  /Users/mollet/Desktop/usr/local/share/octave/2.1.55/site/m/octave-forge//

[~] tcsh:13> cat .octaverc
%% My octaverc
LOADPATH = [LOADPATH,
":/sw/bin:/sw/share/doc/octave/examples:/Users/mollet/CandO/epstk2:/Users/mo
llet/Desktop/usr/local/share/octave/2.1.55/site/m/octave-forge//"];





on 6/13/05 1:44 AM, David Collett at address@hidden wrote:

> Hi. I just installed Octave (on Mac OS X 10.4.1).
> 
> I've started going through the manual and trying the various commands.
> 
> The manual says that instead of typing functions, loops, assignments,
> etc., we can instead type them first into a file, then just type the
> name of the file from the command line.
> 
> I tried type the name of my text file (named "logisticmap"), but I
> got this response:
> 
>     octave:1> logisticmap
>     error: `logisticmap' undefined near line 1 column 1
> 
> What am I doing wrong? I have this file on my Desktop.
> Do I have to put it somewhere else?
> Does it have to have an extension at the end of the filename?
> 
> I've looked through the manual, but I can't find the answer.
> 
> Thanks to anyone  who can get this beginner started!
> 
> David
> 
> 
> 
> -------------------------------------------------------------
> 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]