[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0,
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters |
Date: |
Wed, 17 Jul 2013 20:44:13 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Follow-up Comment #8, bug #39505 (project octave):
Also jumping in...
Reading through the comments and running the provided snippets, there are two
potential problems here, and I'm also unclear which one the reporter is
claiming as the bug.
1. OP's comment 4 seems to indicate that a positive "roffset" inserts blank
lines in MATLAB rather than lines with back-to-back delimiters. I cannot
verify this at the moment, and it's unclear to me from the API documentation
whether the offset lines should be blank or filled with delimiters. It's also
unclear whether the OP meant that the line appeared blank in a text editor but
was actually filled with tab characters.
2. There is definitely some inconsistency in dlmwrite when a single-quoted
string is used with what would be an escape sequence if it were double-quoted,
see below.
octave:1> dlmwrite ("test.txt", ones (3), "delimiter", "\t", "roffset", 2);
octave:2> system ("cat -T test.txt");
^I^I
^I^I
1^I1^I1
1^I1^I1
1^I1^I1
octave:3> dlmwrite ("test.txt", ones (3), "delimiter", '\t', "roffset", 2);
octave:4> system ("cat -T test.txt");
\t\t
\t\t
1^I1^I1
1^I1^I1
1^I1^I1
I'm using cat -T so the actual tab characters are shown as ^I, while "\t" is
two characters.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39505>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, imartinez, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Jordi GutiƩrrez Hermoso, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Jordi GutiƩrrez Hermoso, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, imartinez, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Philip Nienhuis, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, imartinez, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, imartinez, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters,
Mike Miller <=
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Mike Miller, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Philip Nienhuis, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Philip Nienhuis, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Philip Nienhuis, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, imartinez, 2013/07/17
- [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters, Philip Nienhuis, 2013/07/19