How to write to a cell matrix into csv
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kanakaiah Jakkula
le 7 Jan 2016
Commenté : Walter Roberson
le 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 commentaires
Renato Agurto
le 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?
Réponse acceptée
Walter Roberson
le 9 Jan 2016
2 commentaires
Walter Roberson
le 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!