MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求教批量存数组 (https://www.labfans.com/bbs/showthread.php?t=13367)

蚂蚁的味道 2011-05-10 19:50

求教批量存数组
 
求教批量存数组
通过一段程序生成Y1,Y2...Y10等十个N*2的二维数组,例如:
C=rand(100,1);
x=1:100;
Y1=[c(1:10) x(1:10) ];
Y2=[c(11:15) x(11:15) ];
......
Y10=[c(91:100) x9(1:100) ];
请问如何在指定的文件夹中将这十个数组分别存成单独的*.dat文件:
Y1.dat,Y2.dat.....Y10.dat
谢谢!


所有时间均为北京时间。现在的时间是 12:29

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.