- 写入txt
a=[1,2,3;4,5,6]; save C:\Users\Administrator\Desktop\a.txt -ascii a
参考:https://blog.csdn.net/hengyaha/article/details/78995291
- 读取txt
%对于类似的txt文件,不含有字符,只有数字 data=load(‘data_txt.txt’); x=data(:,1); y=data(:,2); plot(x,y,‘r–’)
参考:https://blog.csdn.net/qq_30815237/article/details/124450559
标签:读取,写入,csdn,Matlab,txt,data From: https://www.cnblogs.com/s206/p/17077494.html