matlab 写txt文件

来源:互联网 发布:udp 组播编程 编辑:程序博客网 时间:2024/05/16 04:37
t=0:0.1:10;
y1=sin(t);
y2=cos(t);
y3=t.^2;
y4=rand(1,10);
dlmwrite('a.txt',[y1;y2;y3],',');
dlmwrite('a.txt',y4,'-append');
0 0