How do i convert 2D matrices mat files into a csv file?
3 views (last 30 days)
Show older comments
I have a dataset in data.mat file with 27 variables and each variable has different dimensions. I want to convert this data.mat file into csv file. Is it possible to have all variables in one csv file?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1268460/image.jpeg)
0 Comments
Accepted Answer
Nikhilesh
on 19 Jan 2023
You can write a for loop to write all the data of these .mat files onto an .csv file.
Please refer the following discussion
0 Comments
More Answers (0)
See Also
Categories
Find more on Workspace Variables and MAT-Files 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!