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: Keith Goodman
Subject: Re: How do I just load (read) a file? (beginner's question)
Date: Mon, 13 Jun 2005 16:56:51 -0700

I use these four function to manage my path:

path
addpath
rmpath
savepath

The last three are in octave-forge. The last one, savepath, was added
to the version of octave-forge (2005-06-13) that was released today.

On 6/13/05, David Collett <address@hidden> wrote:
> To: Miquel, Peter, Jeff, & Henry (and other list members):
> 
> Thanks VERY much for taking the time to help me!
> Being a beginner at anything is tough, but it's great to know there
> are people like you willing to help.
> 
> I followed a combination of all your suggestions. I renamed the file
> with a '.m' extension, then I put it in my:
> 
> /sw/share/octave/site/m/    folder
> 
> (although I'm sure that's not the best place to keep my own files!)
> 
> I will follow Henry's advice and look at my LOADPATH file once I
> figure out what it all means! I assume by modifying this file I could
> then have octave look for my files anywhere I choose, right?
> 
> ----
> 
> I have another beginner's question that I'll send in a separate email.
> 
> Thanks again to everyone for your help.
> 
> David Collett
> 
> 
> 
> 
> On Jun 13, 2005, at 9:38 AM, Henry F. Mollet wrote:
> 
> > 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
> > -------------------------------------------------------------
> >
> >
> 
> 
> - - - - -
> 
> Don't worry about the world coming to an end today. It's already
> tomorrow in Australia. - Charles Schultz
> 
> 
> 
> -------------------------------------------------------------
> 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]