help-octave
[Top][All Lists]
Advanced

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

Re: question on runing octave script that uses function files in linux m


From: Markus Bergholz
Subject: Re: question on runing octave script that uses function files in linux machine
Date: Fri, 20 Jun 2014 11:57:30 +0200


Am 20.06.2014 11:53 schrieb "Alois Schloegl" <address@hidden>:
>
> On 06/20/2014 10:50 AM, c. wrote:
> >
> > On 19 Jun 2014, at 20:08, Rui Miguel Soares Pereira <address@hidden> wrote:
> >
> >> Dear all,
> >>
> >> I am just starting to migrate from Matlab in a PC to Octave in a Computer cluster.
> >> I wrote a script say called script.m that invokes functions a1 and a2 that are
> >> written in in separate files a1.m and a2.m.
> >>
> >> If I want to run script in this computer cluster that has Linux, what is the command or
> >> set of commands I have to type such that script runs and calls functions a1 and a2 correctly?
> >
>
> Instead of
>   matlab -nojvm -nodisplay < mysqript.m
>
> you need to do
>   octave --eval "myscript.m"
>

Or
octave -q /path/to/file/myscript.m

> Of course you need to make sure that functions a1, and a2 are in your
> path. You can do that in your script or
> in ~/.octaverc
>
>
> Alois
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave


reply via email to

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