How to write to a cell matrix into csv
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Kanakaiah Jakkula
il 7 Gen 2016
Commentato: Walter Roberson
il 10 Gen 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 Commenti
Renato Agurto
il 7 Gen 2016
Can you post your cell (or enough of it to reproduce your problem) and the command you are typing to save it?
Risposta accettata
Walter Roberson
il 9 Gen 2016
2 Commenti
Walter Roberson
il 10 Gen 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!