How to write to a cell matrix into csv
1 view (last 30 days)
Show older comments
Kanakaiah Jakkula
on 7 Jan 2016
Commented: Walter Roberson
on 10 Jan 2016
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 Comments
Renato Agurto
on 7 Jan 2016
Can you post your cell (or enough of it to reproduce your problem) and the command you are typing to save it?
Accepted Answer
Walter Roberson
on 9 Jan 2016
2 Comments
Walter Roberson
on 10 Jan 2016
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.
More Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!