Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: question on exporting data
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Peter Schreiber

Posts: 112
Registered: 2/1/08
question on exporting data
Posted: Jul 22, 2011 9:17 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,
I have a matrix that I want to export to a file with coma delimiter. This works good,
the only thing left to do is to insert a coma at the beginning of each line in the file.
What would be a good way to do it?

Thanks,
Peter

M=ones(5,5)
dlmwrite('test.txt', matrix, 'delimiter' , ',' ,'precision', 2, '-append')



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.