[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprin
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprintf |
Date: |
Tue, 05 Mar 2013 00:23:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
Follow-up Comment #3, bug #38463 (project octave):
This seems pretty easy to fix. The m-file essentially has
retval = strtrim (retval);
as the last line of code in the file. If you remove the strtrim it doesn't
strip out spaces and I get the same result as Matlab.
What does Matlab return for these two pieces of code?
x = num2str ([1, 1.34; 3, 3.56], "%5.1f")
double (x)
x = num2str ([i, 1.34; 3, 3.56], "%5.1f")
double (x)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38463>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/