help-octave
[Top][All Lists]
Advanced

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

Re: equivalent of matlab -r "code_name(arg1,arg2,...)"


From: David Bateman
Subject: Re: equivalent of matlab -r "code_name(arg1,arg2,...)"
Date: Fri, 11 May 2007 23:50:31 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Johann Cohen Tanugi wrote:
> hi there,
> I have a code which defines a function in order to be able to pass 
> arguments on the command line. So in matlab I do :
> matlab -r "my_code(arg1, arg2, arg3,...)"
> This seems to work well and is the only way I found to easily pass 
> arguments (I am a total newbie, if someone knows better, I am all ears).
> I tried to run the same script with octave, and I figured that the 
> option --eval is what I need in order to replace the -r matlab option.
> But when I type octave --eval "my_code(arg1, arg2, arg3,...)" my code 
> seems to hang : It is a fairly complex double integral, but on matlab it 
> seems to be proceeding normally.
> 
> So before I try to debug, I wanted to know if there was anything I 
> should worry about with this --eval.
> thanks in advance for the help,
> Johann


And if you run "my_code(arg1, arg2, arg3)" from the commandline of
octave, does it still hang? I suspect the "--eval" issue is a red
herring and the problem is with your script or the way octave is
treating or mis-treating it..

D.


reply via email to

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