octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0,


From: imartinez
Subject: [Octave-bug-tracker] [bug #39505] dlmwrite with coffset and roffset >0, inserts extra characters
Date: Wed, 17 Jul 2013 06:22:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

URL:
  <http://savannah.gnu.org/bugs/?39505>

                 Summary: dlmwrite with coffset and roffset >0, inserts extra
characters
                 Project: GNU Octave
            Submitted by: imartinez
            Submitted on: Wed 17 Jul 2013 06:22:35 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: imartinez
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I think this is a bug... I ran a few things on the command line

dlmwrite with roffset and coffset =0 seems ok

with roffset > 0

it is inserting tabs characters..

code
>> a=[1 2 3 4 5;1 2 3 4 5;1 2 3 4 5];

>>dlmwrite('matrix_text.txt',a,'-append','on','delimiter',
'\t','roffset',0,'coffset',0);

>> b=[2 3 4 5 6;2 3 4 5 6;2 3 4 5 6];

>>dlmwrite('matrix_text.txt',b,'-append','on','delimiter',
'\t','roffset',0,'coffset',0);

>>dlmwrite('matrix_text.txt',a,'-append','on','delimiter',
'\t','roffset',1,'coffset',0);

>>dlmwrite('matrix_text.txt',a,'-append','on','delimiter',
'\t','roffset',2,'coffset',0);

>>dlmwrite('matrix_text.txt',a,'-append','on','delimiter',
'\t','newline','unix','roffset',3,'coffset',0);

>>dlmwrite('matrix_text.txt',a,'-append','on','delimiter',
'\t','newline','unix','roffset',3,'coffset',3);

file looks like:

1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
2 3 4 5 6
2 3 4 5 6
2 3 4 5 6
\t\t\t\t
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
\t\t\t\t
\t\t\t\t
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
\t\t\t\t
\t\t\t\t
\t\t\t\t
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
                        1 2 3 4 5
                        1 2 3 4 5
                        1 2 3 4 5 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39505>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]