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: Alois Schloegl
Subject: Re: question on runing octave script that uses function files in linux machine
Date: Fri, 20 Jun 2014 11:52:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

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"

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





reply via email to

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