creating a .res with 2 variables side by side (2 columns)
이전 댓글 표시
hello... how do i create a .res file with two variables side by side?
ex:
X = 1
2
3
4
Y =
1
2
3
4
column 1: colum2:
1 1
2 2
3 3
4 4
thx!
채택된 답변
추가 답변 (2개)
David Sanchez
2013년 10월 23일
x = 0:.1:1;
A = [x; exp(x)];
fileID = fopen('exp.res','w');
fprintf(fileID,'%6s %12s\n','x','exp(x)');
fprintf(fileID,'%6.2f %12.8f\n',A);
fclose(fileID);
카테고리
도움말 센터 및 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!