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:26:26 +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 #7, bug #46770 (project octave):

Thanks for fixing my message, Rik.

I don't think Matlab simply useds 4 for width:

x = [334341.1, 2.22, -3.3; 4.44, 5.55, 6.6];
fmt = '%4.16g ';
y = num2str(x, fmt)

gives in Matlab

334341.1     2.22     -3.3
    4.44     5.55      6.6

and in Octave

334341.1 2.22 -3.3
4.44 5.55  6.6

    _______________________________________________________

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]