change .mat to CSV
4 次查看(过去 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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ECG / EKG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!