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

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

Are you reading the file back on octave??

I am writing on octave and opening the file in a text editor to check it.

if you read back on octave, it looks ok

x = dlmread ('matrix_text.txt', ',')
x =

        2        3        4        5        6
        2        3        4        5        6
        2        3        4        5        6
        0        0        0        0        0
        0        0        0        0        0
        1        2        3        4        5
        1        2        3        4        5
        1        2        3        4        5
        0        0        0        0        0
        0        0        0        0        0
        0        0        0        0        0
        0        0        0        0        0
        1        2        3        4        5
        1        2        3        4        5
        1        2        3        4        5 

octave does not have problems because the extra characters are read are valid
empty lines.

READ THE NEXT STATEMENT CAREFULLY

if you open the file in an EXTERNAL TEXT EDITOR (like KWRITE)

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


If the file goes to an external application, then the little ,,,,,
are a problem.

it is HIS code

    _______________________________________________________

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]