Write data to text file in C/C++, Fortran, and Matlab
% http://www.mathworks.com/help/matlab/ref/fprintf.html
% http://www.mathworks.com/help/matlab/ref/sprintf.html
x = 0:.1:2*pi;
A = [x; sin(x)];fileID = fopen('myfile.out','w');
fprintf(fileID,'%6.2...
原创
2018-06-16 14:04:05 ·
71 阅读 ·
2 评论