From help-octave-request at bevo dot che dot wisc dot edu Sun Jul 25 12:51:29 1999 Subject: Re: argv() problem with Octave 2.1.14 From: Wonkoo Kim To: Klaus Gebhardt <100114 dot 1371 at compuserve dot com> CC: Octave Users Date: Sun, 25 Jul 1999 13:51:13 -0400 Klaus Gebhardt wrote: > > > datafile = sprintf ("%s", argv(1,:)) > > In Octave 2.1.14 the variable 'argv' is a list. To access the the elements > in the list you must use the function 'nth'. So the above line must be > changed: > > datafile = sprintf ("%s", nth (argv, 1)) Thanks! This worked. Octave 2.1.14 is now perfect for me. BTW, docs for 2.1.14 has the old usage of argv: octave.i01: printf (" %s", argv(i)); octave.i02: printf (" %s", argv(i,:)); (Also, in OS/2 INF file.) So, should these be corrected? Thank you very much. //------------------------------------------------------------------- // Wonkoo Kim ('+' may be dropped in my addr.) --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------