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

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

[Octave-bug-tracker] [bug #46770] num2str produces different results in


From: Rik
Subject: [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab
Date: Wed, 13 Jan 2016 17:12:19 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #46770 (project octave):

                  Status:               Confirmed => In Progress            
                 Release:                   4.0.0 => dev                    

    _______________________________________________________

Follow-up Comment #15:

Thanks for running the examples.  I have a few more tests to run.  One of the
most obvious is to see whether int2str behaves like num2str when concatenating
ND-arrays.  The others are corner cases for num2str.


diary on
x = cat (3, magic (3), -magic (3))
y = int2str (x)

x = [0 0 0]
num2str (x)
x = [2 NaN 1e5]
num2str (x)
x = [pi NaN 1e5]
num2str (x)
x = [Inf NaN -Inf]
num2str (x)
x = [2 1e23 4]
num2str (x)
x = [2.1 1e23 pi]
num2str (x)
diary off




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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