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: write multiple matrices to csv file
Replies: 1   Last Post: Apr 25, 2014 6:01 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 3
Registered: 10/22/10
write multiple matrices to csv file
Posted: Apr 25, 2014 5:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have multiple numerical matrices generated by a for loop. Each matrix has 4 columns and uncertain rows. How should I write these matrices to a single csv file?

I have tried dlmwrite('filename.csv', M,'-append'), but dlmwrite appends the new matrix at the end of the rows. The outputs that I expect are the new matrix should be written starting from a different column.


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.