[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: |
Tue, 29 Dec 2015 12:08:18 +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 #11, bug #46770 (project octave):
Thanks for your response. And sorry for my lack of knowledge about Savannah
usage. I was using the markup wrong. I still don't know how to upload, so I'm
pasting here the contents of the diary file:
x = [1.1, 2.22, -3.3; 4.44, 5.55, 6.6];
num2str (x)
ans =
1.1 2.22 -3.3
4.44 5.55 6.6
num2str (x, 16)
ans =
1.1 2.22 -3.3
4.44 5.55 6.6
num2str (x, '%.16g')
ans =
1.12.22-3.3
4.445.55 6.6
x(1,2) = 1e7;
num2str (x)
ans =
1.1 10000000 -3.3
4.44 5.55 6.6
num2str (x, '%.16f ')
ans =
1.1000000000000001 10000000.0000000000000000 -3.2999999999999998
4.4400000000000004 5.5499999999999998 6.5999999999999996
diary off
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46770>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46770] `num2str` produces different results in Octave and in Matlab, (continued)
- [Octave-bug-tracker] [bug #46770] `num2str` produces different results in Octave and in Matlab, Luis Mendo, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Luis Mendo, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Luis Mendo, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab, Rik, 2015/12/28
- [Octave-bug-tracker] [bug #46770] num2str produces different results in Octave and in Matlab,
Luis Mendo <=