How to print out cell array to CSV file?
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a large cell array (600000*75). I just want to write it into CSV file. It has both numeric and text values. How shall do it?
0 个评论
采纳的回答
the cyclist
2014-3-1
2 个评论
the cyclist
2014-3-3
Did cellwrite crash or give an error? Or is it just that the output was not what you expect? If your output has commas, then even if cellwrite (or any other MATLAB function) does its job, then the program you use to open the output might format it badly because it assumes those commas are field separators.
One trick I use sometimes is to replace commas in the cell array with semicolons. You can use the regexprep() function to do that. (Obviously, that's not a good solution if you really need those commas.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!