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 22:08:46 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)

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

Calm down, Philip Nienhuis.... it needs several cases to check 
what is going on.

in matlab with tabs first and then with commas...

dlmwrite('matrix_test.txt',a,'-append','delimiter',
't','roffset',0,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
't','roffset',0,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
't','roffset',4,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
't','roffset',4,'coffset',4);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
',','roffset',0,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
',','roffset',1,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
',','roffset',2,'coffset',0);
>> dlmwrite('matrix_test.txt',b,'-append','delimiter',
',','roffset',3,'coffset',0);
>> 

Tabs are ok in matlab, empty lines are generate when you open the file in
wordpad. This is what a microwave S2P file needs

I do recognize that with commas, it is inserting commas on the blank lines.

So, I think it still holds water at about 50%

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


    _______________________________________________________

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]