How to write to a cell matrix into csv
조회 수: 1 (최근 30일)
이전 댓글 표시
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!