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: 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 ]
joanne

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.

Thanks,
Joann



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.