save into csv file
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have a problem with saving cell array into csv file. abc = [name age]; I just want to save this to csv file.. Could anyone please help me out? I've tried by myself using the following codes.
fid=fopen('C:\MATLAB\name.csv','w'); fprintf(fid, '%6.2f %12.8f\n', abc); fid=fclose(fid);
But, it keeps repeating that fprintf doesn't work with cell array.. Do you have any idea to deal with this?
Thanks in advance
0 件のコメント
回答 (1 件)
Iain
2013 年 8 月 2 日
try xlswrite, or csvwrite instead.
Either that or change the format of your cell array back into a numerical array...
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!