help-octave
[Top][All Lists]
Advanced

[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.


reply via email to

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