How to write to a cell matrix into csv
1 回表示 (過去 30 日間)
古いコメントを表示
Kanakaiah Jakkula
2016 年 1 月 7 日
コメント済み: Walter Roberson
2016 年 1 月 10 日
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 件のコメント
Renato Agurto
2016 年 1 月 7 日
Can you post your cell (or enough of it to reproduce your problem) and the command you are typing to save it?
採用された回答
Walter Roberson
2016 年 1 月 9 日
2 件のコメント
Walter Roberson
2016 年 1 月 10 日
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!