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: Luis Mendo
Subject: [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab
Date: Mon, 28 Dec 2015 18:28:15 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

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

Running this in Matlab

x = cat(3, magic(3), -magic(3));
fmt = '%.16g %.16g %.16g n';
y = sprintf (fmt, x)

produces

y =
8 3 4 
1 5 9 
6 7 2 
-8 -3 -4 
-1 -5 -9 
-6 -7 -2 

ans =
     1    51

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Mensaje enviado vía/por Savannah
  http://savannah.gnu.org/




reply via email to

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