Convert .mat files to csv

6 visualizaciones (últimos 30 días)
John
John el 10 de Oct. de 2022
Comentada: John el 10 de Oct. de 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?
  3 comentarios
John
John el 10 de Oct. de 2022
They are struct with fields:
labelNames: [15×5 table]
Davide Masiello
Davide Masiello el 10 de Oct. de 2022
Maybe best to share the .mat file

Iniciar sesión para comentar.

Respuestas (1)

Ghazwan
Ghazwan el 10 de Oct. de 2022
Editada: Ghazwan el 10 de Oct. de 2022
xlswrite('MyFile.csv',X,1);
X = is the matrix you are trying to save. 1 is the number of sheet.
  1 comentario
John
John el 10 de Oct. de 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,...)

Iniciar sesión para comentar.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by