Afficher commentaires plus anciens
Hi. I have my data in a Matrix called Data and my Time in a Cell array called Time, with "yyyy-mm-dd-hh-mm format". Now I want to write this as a csv-file, with the timestamp in the first column and then the data after that. Same number of rows in time and data..
I have tried to look into cellwrite and so but I dont really get it.. Can anyone help?
Fredrik
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 23 Déc 2011
0 votes
csvwrite() can only write numeric values. dlmwrite() can only write either numeric or character data on any one call (and character is not recommended.) xlswrite() can handle cell arrays, but only when you are using MS Windows and have Excel installed; this would normally be used for writing .xls or .xlsx files and I do not know if you could write csv files with it.
Using low level I/O such as K E shows is probably your only practical choice.
Catégories
En savoir plus sur Text Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!