[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0,
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters |
Date: |
Wed, 17 Jul 2013 15:34:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 |
Update of bug #39505 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Which part is a bug? roffset and coffset are used to position the matrix
being written in the destination file. For example, roffset=1 means one
entire line of delimiters will be written. A coffset=2 means 2 delimiters
will be prepended to every row written out.
Example
M = [1 2; 3 4];
dlmwrite ('tst.txt', M, ',');
dlmwrite ('tst.txt', M, '-append', 'delimiter', ',', 'roffset', 3, 'coffset',
2);
type tst.txt
tst.txt is the user-defined function defined from: ./tst.txt
1,2
3,4
,,,
,,,
,,,
,,1,2
,,3,4
M2 = dlmread ('tst.txt')
M2 =
1 2 0 0
3 4 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 1 2
0 0 3 4
Notice how the second matrix portion has been offset from the first as
specified by roffset and coffset.
_______________________________________________________
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 <=
- [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, 2013/07/17
- [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