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: Tue, 29 Dec 2015 00:59:37 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Follow-up Comment #10, bug #46770 (project octave):

@Luis: Can you run the following code samples and upload the results so that
we can get a better idea of what Matlab is trying to do?


diary on

x = [1.1, 2.22, -3.3; 4.44, 5.55, 6.6];

num2str (x)

num2str (x, 16)

num2str (x, '%.16g')

x(1,2) = 1e7;
num2str (x)

num2str (x, '%.16f ')

diary off


And then upload the diary file.



    _______________________________________________________

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]