octave-maintainers
[Top][All Lists]
Advanced

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

Re: str2double behavior


From: Ben Abbott
Subject: Re: str2double behavior
Date: Mon, 06 Jun 2011 13:57:44 -0400

On Jun 6, 2011, at 1:42 PM, Rik wrote:

> Julien,
> 
> Can you check what the following does?
> 
> str2double ({ "1.5", [2.5] })
> 
> If it returns
> 
> [ 1.5, NaN ]
> 
> then Octave will need to look at each value in the cell array.  Currently
> we only check that *all* values are strings.
> 
> --Rik


I'm running the same version of Matlab is Julien is.

>> str2double ({ '1.5', [2.5] })

ans =

   1.500000000000000                 NaN

Ben



reply via email to

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