[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
argv
From: |
John W. Eaton |
Subject: |
argv |
Date: |
Fri, 14 Sep 2007 15:39:46 -0400 |
On 14-Sep-2007, Ólafur Jens Sigurðsson wrote:
| Hi, ok, here is a very stupid question but this is getting in my way of
| doing stuff for my thesis.
|
| How do I access argv elements in version 2.9??
|
| before it was argv{2} to access the second element but that doesnt work any
| more
|
| argv(2) doesnt work either
| argv(2,:) doesnt work
|
| I have run out of ideas :(
There are no built-in variables in Octave now, so argv is a function
that returns a cell array of the arguments:
args = argv ();
args{2}
jwe
- argv, Ólafur Jens Sigurðsson, 2007/09/14