help-octave
[Top][All Lists]
Advanced

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

Re: Beginner's Help with argv


From: Richard Crozier
Subject: Re: Beginner's Help with argv
Date: Sat, 12 Jan 2013 05:29:08 -0800 (PST)

try:

argv() returns a cell array containing the supplied arguments. If you want
to supply arguments though, a function is usually better rather than a
script.

args=argv();
m=str2num(args{1});
n=str2num(args{2});
disp(m*n) 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Beginner-s-Help-with-argv-tp4648741p4648801.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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