[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: str2double API changes
From: |
Ben Abbott |
Subject: |
Re: str2double API changes |
Date: |
Sat, 04 Jun 2011 23:47:29 -0400 |
On Jun 4, 2011, at 6:42 PM, Rik wrote:
> On 06/04/2011 10:00 AM, address@hidden wrote:
>> I just upgraded to 3.4 and noticed that the API for str2double is
>> slightly different. It no longer returns the status of the conversion.
>> Was this removal on purpose when rewriting for C or it was just
>> forgotten (just asking because it's also doesn't appear on the NEWS
>> hence my surprise).
>>
>> It used to work this way
>>
>> [num, status] = str2double {'32, '23', 45'}
>>
>> where status would be a cell array of the same division of the input
>> with values of 0 or -1 whether it succeeded or not on the conversion.
> The new behavior (i.e., no extra return status) makes the function Matlab
> compatible. The documentation for str2double from Mathworks is here:
> http://www.mathworks.com/help/techdoc/ref/str2double.html.
I don't think this is an issue of Matlab compatibility. Granted that supporting
the return status means that Matlab isn't consistent with Octave, but Octave is
still compatible with Matlab, correct?
Ben
Re: str2double API changes,
Ben Abbott <=