% 为输出创建文件 !touch testFile.txt fid = fopen('testFile.txt','w'); for i = 1:10 frprintf(fid,'%6.2f ',i); end