%本地文件夹内打印数据
fid=fopen('interdetect.txt','wt');
t=0;
for m = 0 : 64
for n = 0 : 64
dx = (n-32)/32;
dy = (m-32)/32;
fprintf(fid,'%.0f,%.0f,%.0f=%.0f,%.5f,%.5f,%.5f,%.5f,%.5f,%.5f\n'...
,t,n,m,t,dx,dy,dx,dy,dx,dy);
end
end
fclose(fid);
%本地文件夹内打印数据
fid=fopen('interdetect.txt','wt');
t=0;
for m = 0 : 64
for n = 0 : 64
dx = (n-32)/32;
dy = (m-32)/32;
fprintf(fid,'%.0f,%.0f,%.0f=%.0f,%.5f,%.5f,%.5f,%.5f,%.5f,%.5f\n'...
,t,n,m,t,dx,dy,dx,dy,dx,dy);
end
end
fclose(fid);