【matlab】读写文件

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

 

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

其他:

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

 

如果想读入txt

scan1=importdata('C:\Users\think\Desktop\bath1.txt');

 

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

posted @ 2016-10-11 17:33  xy123001  阅读(231)  评论(0编辑  收藏  举报