How to write to a cell matrix into csv
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a cell matrix (contains numeric values and text). My first row is the column headings. When I write to csv file using "csvwrite" or "xlxwrite", part of first row headings are missing (just empty). Please suggest me how to overcome this.
Sincerely, Mekala
2 个评论
Renato Agurto
2016-1-7
Can you post your cell (or enough of it to reproduce your problem) and the command you are typing to save it?
采纳的回答
Walter Roberson
2016-1-9
2 个评论
Walter Roberson
2016-1-10
You cannot do it using csvwrite(). csvwrite() cannot write strings. dlmwrite() cannot write strings. You need to fopen/fprintf/fwrite. Or if you have MS Windows and Excel installed then you can xlswrite() while requesting a .csv file as output.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!