creating a .res with 2 variables side by side (2 columns)
9 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Cedric
2013-10-23
If your .res file is a basic text file, you can proceed as follows
dlmwrite( 'myFile.res', [X,Y], 'delimiter', ' ' )
0 个评论
更多回答(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);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!