[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead
From: |
Ben Kurtz |
Subject: |
[Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN |
Date: |
Thu, 05 Sep 2013 20:58:33 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 |
Follow-up Comment #13, bug #39838 (project octave):
WRT Matlab's behavior on multi-row strings:
* Matlab's behavior is undocumented. no mention is made in the str2double
documentation of what the behavior will be
* Other similar functions (e.g. hex2num) take a similar interpretation of
converting one number per row.
* Matlab's behavior is illogical, as it converts down columns, rather than
across rows. In other words, it follows the data order in memory (completely
ignoring the array size) rather than following standard (english at least)
language conventions.
* Matlab's behavior is inconsistent between versions. Philip's example of
str2double (['1'; ' '; '2'])
errors out on his version of matlab, and simply returns NaN in the version of
matlab I have installed.
I'll see about a changeset at some point if no one else gets to it first.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39838>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Ben Kurtz, 2013/09/01
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Philip Nienhuis, 2013/09/01
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Ben Kurtz, 2013/09/03
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Jordi GutiƩrrez Hermoso, 2013/09/03
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Michael Godfrey, 2013/09/03
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Philip Nienhuis, 2013/09/03
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN,
Ben Kurtz <=
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Philip Nienhuis, 2013/09/06
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Philip Nienhuis, 2013/09/06
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, anonymous, 2013/09/06
- [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN, Rik, 2013/09/11