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 18:54:01 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Follow-up Comment #4, bug #39505 (project octave):

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


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

        2        3        4        5        6
        2        3        4        5        6
        2        3        4        5        6

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

%leave or try to leave a blank line

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

2,3,4,5,6
2,3,4,5,6
2,3,4,5,6
,,,,                    (this is supposed to be blank)
,,,,                    (this is also supposed to be blank)   
1,2,3,4,5
1,2,3,4,5
1,2,3,4,5

MATLAB:

2,3,4,5,6
2,3,4,5,6
2,3,4,5,6

                        (BLANK as expected)  
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]