[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pass arguments from command line
From: |
Peter He |
Subject: |
Pass arguments from command line |
Date: |
Mon, 27 Aug 2001 09:57:33 -0500 |
Hi there,
I'm using Linux Redhat 7.0. I tried to pass some arguments from command
line to one Octave script file. Here is the script file t1.m:
#!/usr/bin/octave -qH
nargin
argv
tmp=argv(1)
Then I try t1.m from shell:
address@hidden cgshow]$ ./t1.m test 1e-8 0.2
nargin = 3
argv =
(
[1] = test
[2] = 1e-8
[3] = 0.2
)
tmp =
(
[1] = test
)
Why I couldn't get:
argv =
(
test
1e-8
0.2
)
tmp =
test
???
How can I remove '[?] = ' from argv?
Thank you very much!
Peter
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Pass arguments from command line,
Peter He <=