【matlab】读写文件

save('pqfile.mat','M');

('E:我的坚果云pqfile.mat','M');

其他:

http://blog.csdn.net/iqizheng/article/details/11853919

如果想读入txt

scan1=importdata('C:Users hinkDesktopath1.txt');

写txt
fp = fopen('E:我的坚果云data.txt','wt');
for i =1 : size(B,1)
fprintf(fp, '%f %f ', B(i,1),B(i,2));
end

原文地址:https://www.cnblogs.com/xy123001/p/5950137.html