Convert .mat files to csv

10 views (last 30 days)
John on 10 Oct 2022
Commented: John on 10 Oct 2022
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?
Davide Masiello
Davide Masiello on 10 Oct 2022
Maybe best to share the .mat file

Sign in to comment.

Answers (1)

Ghazwan on 10 Oct 2022
Edited: Ghazwan on 10 Oct 2022
X = is the matrix you are trying to save. 1 is the number of sheet.
  1 Comment
John on 10 Oct 2022
Thank you for the help. But what I need is to convert n tables (contained in a folder) to n csv files with a for loop (at every iteration I want to produce a csv file with different name from the previous one: file1.csv, file2.csv, file3.csv,...)

Sign in to comment.


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!

Translated by