How to write to a cell matrix into csv
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kanakaiah Jakkula
am 7 Jan. 2016
Kommentiert: Walter Roberson
am 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 Kommentare
Renato Agurto
am 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?
Akzeptierte Antwort
Walter Roberson
am 9 Jan. 2016
2 Kommentare
Walter Roberson
am 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!