change .mat to CSV
조회 수: 3 (최근 30일)
이전 댓글 표시
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
Paolo
2018년 6월 7일
What are the contents of par1, par2, par3? Can you add your .mat file to your question?
채택된 답변
Onur Kapucu
2018년 6월 7일
편집: Onur Kapucu
2018년 6월 7일
This should do it
EL_struct = open('el.mat');
EL_transposed = structfun(@transpose,EL_struct,'UniformOutput',false);
data = struct2table(EL_transposed);
writetable(data);
댓글 수: 3
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!