Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
HOW TO SAVE MAT 2 ASCII FILE?
조회 수: 1 (최근 30일)
이전 댓글 표시
Anyone pls help. How to save matlab to ascii file?
this is what I do so far
ncol = 66;
fmt = repmat('%f', 1, ncol);
filename = 'j3p0001c070.asc';
fid = fopen(filename, 'rt');
data = cell2mat( textscan(fid, fmt, 'HeaderLines', 74, 'CollectOutput',10, 'TreatAsEmpty', '*') );
fclose(fid);
data(isnan(data)) = -99.9999;
댓글 수: 6
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!