dlmwrite with text and numbers
조회 수: 11 (최근 30일)
이전 댓글 표시
I am wanting to transfer data that is input into a UI to a csv file. I am using dlmwrite currently but keep running into the issue of the csv not functioning properly. Dlmwrite is outputting nonsense text, and I frankly am lost on what to try. I've done all I know how to do.
댓글 수: 4
per isakson
2019년 2월 19일
편집: per isakson
2019년 2월 19일
dlmwrite, Write matrix to ASCII-delimited file says dlmwrite(filename,M) writes numeric data in array M to an ASCII format file, i.e not text
채택된 답변
per isakson
2019년 2월 19일
Something like
for jj = 1: len
fprintf( fid, '___\n', num(jj), txt{jj} )
end
is a standard approach
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!