The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: question on exporting data
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Peter Schreiber

Posts: 117
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

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?


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.