Structure Export
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to do something which I feel is pretty simple. I'm trying to export each of 4 fields from a structure to a .txt file. I'd like the text file to be comma delimited. 3 of my fields are character and 1 is double. Is this a fairly simple thing to do?
Thanks, Brian
댓글 수: 0
채택된 답변
Walter Roberson
2011년 11월 10일
Structure, or structure array?
Structure case:
t = struct2cell(S);
fprintf(fid, '%s,%s,%s,%f\n', t{:});
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!