From help-octave-request at bevo dot che dot wisc dot edu Mon Dec 30 12:11:09 2002 Subject: Re: Strings not compatible with Matlab? From: "Henry F. Mollet" To: "John B. Thoo" Cc: Octave_post Date: Mon, 30 Dec 2002 10:11:26 -0800 Many thanks, now worked like a charm. Henry on 12/30/02 9:39 AM, John B. Thoo at jb2 at ms dot yuba dot cc dot ca dot us wrote: > On Monday, December 30, 2002, at 09:30 AM, Henry F. Mollet wrote: > >> I'm having a hard time to get started with octave. I've tried args >> ('hello') first on Mac and then on PC: > > Hi. I'm new to Octave, myself, so I may not know of what I speak, but I > think that "args" is a function that James defined: > > > % test function to echo string arguments > > ######################################## > function args (argv) > > argc = length (argv); > printf ("argc = %d\n", argc); > > for i = 1:argc > printf ("arg %d = %s\n", i, argv (i)); > end > endfunction > ######################################## > > > So I think you need to enter that in first before you try "args > ('hello')". > > HTH. Cheers. > > ---John. > ------------------------------------------------------------- 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 -------------------------------------------------------------