change .mat to CSV
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roozbeh Yousefnejad
el 7 de Jun. de 2018
Comentada: Roozbeh Yousefnejad
el 7 de Jun. de 2018
Hi all, I have .mat file which has 11 different parameters in it, say par1, par2,par3, etc. Is there any way to save this "mat" file as a CSV file? I want to have the name of the parameters (par1,par2, ...) on the first row of the CSV as well.
Thanks
2 comentarios
Paolo
el 7 de Jun. de 2018
What are the contents of par1, par2, par3? Can you add your .mat file to your question?
Respuesta aceptada
Onur Kapucu
el 7 de Jun. de 2018
Editada: Onur Kapucu
el 7 de Jun. de 2018
This should do it
EL_struct = open('el.mat');
EL_transposed = structfun(@transpose,EL_struct,'UniformOutput',false);
data = struct2table(EL_transposed);
writetable(data);
Más respuestas (0)
Ver también
Categorías
Más información sobre ECG / EKG en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!