Convert .mat files to csv
Show older comments
Hi. I need to convert some .mat files contained in a folder to csv with a for loop. What is the best way to do it?
3 Comments
KSSV
on 10 Oct 2022
It depends on what data mat files has.
John
on 10 Oct 2022
Davide Masiello
on 10 Oct 2022
Maybe best to share the .mat file
Answers (1)
xlswrite('MyFile.csv',X,1);
X = is the matrix you are trying to save. 1 is the number of sheet.
Categories
Find more on Tables 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!