How can I save each column of a matrix as separate .dat file?
Show older comments
I have a matrix of 40 columns. I want to save separate .dat files for each column. Can anyone help me with it?
Thanks in advance.
2 Comments
Loop over the columns and use indexing.
If you do not know how to use indexing then do the introductory tutorials:
José-Luis
on 1 Aug 2017
Why do you want to do that? It is probably a bad idea. What are you trying to achieve?
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!