[Mma] someone asked me how to create a file and run it
boud
boud at astro.uni.torun.pl
Tue Apr 8 15:04:31 CEST 2003
On Tue, 8 Apr 2003, Maciej Bilicki wrote:
> On Tue, 1 Apr 2003, Boud Roukema wrote:
>
> > # create a file, in some directory e.g.
> > #
> > # /home2/<myname>/octave/eg_octave.m
> > #
> > #
> > # in octave, type
> > #
> > # LOADPATH
> > #
> > # to see the "path" for "loading" files. This is a useful linux/unix concept.
> > # Then add your path to the beginning or end of the path.
> > #
> > # LOADPATH='/home2/<myname>/octave/:'
> > #
> > # type
> > # LOADPATH
> > # to check the new value
> > #
> > # WARNING: Do not forget the ":" or you may lose access to libraries!!
> > #
> > # HINT: You might want to add LOADPATH='/home2/<myname>/octave/:'
> > # to your file ~/.octaverc so that it is read automatically when you
> > # start octave.
>
> OK, and then how do you RUN the file?
Like in linux/unix ;) - start octave and type the filename without
the .m - in this case "eg_octave".
octave:1> eg_octave
pozd
boud
More information about the Mma
mailing list