help-octave
[Top][All Lists]
Advanced

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

Re: File being written backwards???


From: martine1212
Subject: Re: File being written backwards???
Date: Tue, 16 Jul 2013 14:32:37 -0700 (PDT)

Adding the fclose.....

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




--
View this message in context: 
http://octave.1599824.n4.nabble.com/File-being-written-backwards-tp4655719p4655735.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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