help-octave
[Top][All Lists]
Advanced

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

Re: command-line like arguments at the octave prompt?


From: Andy Buckle
Subject: Re: command-line like arguments at the octave prompt?
Date: Mon, 30 Aug 2010 06:57:32 +0100

On Mon, Aug 30, 2010 at 1:28 AM, Mike B. <address@hidden> wrote:
> Hi All,
>
> The octave manual mentions it is possible to provide command line arguments 
> at the shell prompt, for example:
> octave myfile.m a b c
>
> Is it possible to do the same for a script (not a function) at the octave 
> prompt, for example:
>
> 1:>myfile a b c
>
> Thanks,
> Mike.

I don't think scripts can take arguments.

When you do this sort of thing

1:>myfile a b c

the function myfile cannot assign its output to variables of your
choice (only to 'ans'), and its arguments are strings 'a', 'b' and
'c'.

-- 
/* andy buckle */


reply via email to

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