[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Beginner's Help with argv
From: |
epetting |
Subject: |
Beginner's Help with argv |
Date: |
Thu, 10 Jan 2013 09:47:39 -0800 (PST) |
Hello,
I'm relatively new to octave and cannot get the argv function to work
Here is my script (saved as ARGS.m):
clear all;
close all;
args=argv
m=str2num(argv(){1});
n=str2num(argv(){2});
disp(m*n)
However, when I type
ARGS 2 3
into the terminal, all I receive is the following:
error: invalid use of script /Users/ep/ARGS.m in index expression
Any help is appreciated!!!! Thanks in advance! Also, I am using Octave
version 3.4.0 (if that makes a difference!)
--
View this message in context:
http://octave.1599824.n4.nabble.com/Beginner-s-Help-with-argv-tp4648741.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Beginner's Help with argv,
epetting <=