octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #39838] str2double ('') gives [](0x1) instead of NaN
Date: Tue, 03 Sep 2013 20:10:25 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

Follow-up Comment #12, bug #39838 (project octave):

Ben K, as to comment #9:
There's a nice write-up on how to prepare changesets (by Jordi himself):

http://jordi.inversethought.com/blog/how-to-write-a-patch-for-octave/

If you do make a changeset, could you also please include the revised help
text I uploaded in comment #6 and check that it fits the new str2double
behavior?
I don't mind making a cs myself and pushing it but this week my evenings turn
out to have been reserved for furniture repair jobs at home, my own and my
daughter's sport clubs, and some parent gathering at her school. No way to
escape those ;-) 
Maybe Friday I'll have some time for str2double. Feel free to beat me to it,
at your discretion.

Of course I'd also like to try & test your patch but that can be done any time
before pushing.

@Jordi:
Sorry but I don't follow.
I think we (Ben and I) do follow Matlab as far as reasonable.
Ben -like me- prefers option A1 in comment #9 which AFAIU does basically the
same as Matlab.
We'll deviate from ML in that Octave's str2double continues to accept string
arrays as input, but with some unavoidable gotchas that I tried to outline in
the revised help text.

Anyway I didn't write it yet but this thread confirms my opinion that Matlab
isn't stupid - there is valid reasoning for e.g., its str2double to not accept
char array input. But that's no reason for Octave to blindly follow. Let's at
least make Octave's docs more clear than ML's.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39838>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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