CSWWrite
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
Walter Roberson
2011 年 12 月 23 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!