MATLAB学习总结(一)for循环中数据的全部提取
for i=1:400 ix=1*(mod(i,20)-0.5); if ix==-0.5 ix=20-0.5; end A(1,:)=[ix,i]; data(i,:)=A(1,:); end运行结果:|0.500000000000000 11.50000000000000 22.50000000000000 33.500000.