help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question re: argv()


From: Jordi Gutiérrez Hermoso
Subject: Re: Question re: argv()
Date: Sun, 19 Jun 2011 12:40:00 -0500

On 19 June 2011 11:04, Rhys Ulerich <address@hidden> wrote:
> On Sun, Jun 19, 2011 at 10:46 AM, Rhys Ulerich <address@hidden> wrote:
>> I'm having trouble understanding some argv()-related behavior.  This
>> is likely me not grokking argv()'s resulting cell arrays well.
>> ...
>> h   = argv(){1}
>> sh  = argv(){3}
>> s   = sh / h
>> ...
>> which completely baffles me.  How exactly does 16 / 8 = [0.875,
>> 0.96429] ?
>
> I'm dumb.  "16" / "8" = [0.875, 0.96429].  I need to use sscanf.

Or str2num.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]