Writing array data to file
이전 댓글 표시
Hello everyone,
I want to write this data to a file, but the data in matlab does not match with the data in the file. Whats the problem? Thanks in advance.
for z=1:columns
tension = tension_array{1,z};
epsilon = epsilon_array{1,z};
fileIDs = fopen(strcat(file_names{z,1},'_edited_strain.TXT'),'w','n','UTF-8');
fprintf(fileIDs,'%6s %12s\n','tension','strain');
fprintf(fileIDs,'%f64 %f64\n',tension,epsilon);
fclose(fileIDs);
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!