[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
input variables form the shell
From: |
jacopo rocchi |
Subject: |
input variables form the shell |
Date: |
Thu, 1 Mar 2012 07:57:34 -0800 (PST) |
Hi, is it possible to launch an octave script passing arguments from the
shell?
I would liko to do something like this:
write this in the shell: >octave -q script.m ARG
And then inside script.m i would write something like this: disp(2*ARG);
So I would like the script to print to the shell 2 times the argument passed
in input.
I read I should use the argv function but I mean, what is the correct
syntax?
--
View this message in context:
http://octave.1599824.n4.nabble.com/input-variables-form-the-shell-tp4435361p4435361.html
Sent from the Octave - General mailing list archive at Nabble.com.
- input variables form the shell,
jacopo rocchi <=
- Re: input variables form the shell, c., 2012/03/01
- Re: input variables form the shell, Jordi Gutiérrez Hermoso, 2012/03/01
- Re: input variables form the shell, Jordi Gutiérrez Hermoso, 2012/03/01
- Re: input variables form the shell, jacopo rocchi, 2012/03/01
- Re: input variables form the shell, Martin Helm, 2012/03/01
- Re: input variables form the shell, c., 2012/03/01
- Re: input variables form the shell, jacopo rocchi, 2012/03/01
- Re: input variables form the shell, Jordi Gutiérrez Hermoso, 2012/03/02
- Re: input variables form the shell, c., 2012/03/02