[Top][All Lists]

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

Re: Command line parameters

From: fork
Subject: Re: Command line parameters
Date: Tue, 26 Apr 2011 20:42:07 +0000 (UTC)
User-agent: Loom/3.14 (

fork <forkandwait <at>> writes:

> Daryl Lee <daryl <at>> writes:
> > 
> >  When I am at the Octave 
> > prompt and type "myscript arg1 arg2" I get "error: i
> There is a vocabulary issue here, I think:
> "scripts" (version 1) are files with octave code that is run from the octave
> prompt as if they had been "sourced". 

So in the above, you would assign variables however the script might need them,
then just call "myscript".  

OR, you would open a _shell_ and run $ myscript arg1 arg2

What you probably want is to write a _function_ and call it as "myfunc(arg1,
arg2)" in the octave prompt

reply via email to

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