oligin4=zeros(300,20);
z=0;
fid1 = fopen(‘1.txt’,‘w’);
fid2 = fopen(‘2.txt’,‘w’);
for i=1:300
for j=1:20
z=z+1;
oligin4(i,j)=oligin1(z);
fprintf(fid1, ‘%f,’,oligin4(i,j));
end
fprintf(fid1, ‘\n’);
end
oligin5=zeros(300,20);
z=0;
for i=1:300
for j=1:20
z=z+1;
oligin5(i,j)=oligin2(z);
fprintf(fid2, ‘%f,’,oligin5(i,j));
end
fprintf(fid2, ‘\n’);
end
MATLAB 文本操作
最新推荐文章于 2023-11-02 20:32:48 发布