[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44684] num2str produces additional blank line
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #44684] num2str produces additional blank lines |
Date: |
Wed, 01 Apr 2015 10:19:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 |
URL:
<http://savannah.gnu.org/bugs/?44684>
Summary: num2str produces additional blank lines
Project: GNU Octave
Submitted by: None
Submitted on: Wed 01 Apr 2015 10:19:30 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: MT
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Using Octave-3.8.1 from standard Ubuntu 14.04 repositories (64-bit OS)
I have found some weird behavior of num2str function. Sometimes it produces
additional blank line.
c = [
-0.00000 0.71500 -0.00000
-0.00000 -0.71500 0.00000
1.23760 -1.40040 0.00000
-1.23760 -1.40040 0.00000
];
% Produces additional blank line
num2str(c,'%3.8f %3.8f %3.8f \n')
% Also produces additional blank line
num2str(c(1:3,:),'%3.8f %3.8f %3.8f \n')
% However, this does not produce the blank line
num2str(c(3:4,:),'%3.8f %3.8f %3.8f \n')
When I use larger matrix (more rows), the problem repeats after every 3 lines
- it is probably some general problem, independent on what exactly is on the
3rd line...
Also affects Octave 3.8.2, Matlab doesn't have this problem
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44684>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44684] num2str produces additional blank lines,
anonymous <=