Graphics Programs Reference
In-Depth Information
%%%%%%%%% ************************ %%%%%%%%%%%%
eps = 0.0001;
nx = 0:N-1;
ny = 0:N-1;
i = sqrt(-1);
% check that window size is the same as the array size
[nw,mw] = size(win);
if winid >0
if mw ~= N
fprintf('STOP == Window size must be the same as the array')
return
end
if nw ~= N
fprintf('STOP == Window size must be the same as the array')
return
end
end
%if dol is > 0.5 then; choose dol = 0.5 and compute new N
if(dolxr <=0.5)
ratiox = 1 ;
dolx = dolxr ;
Nx = N ;
else
ratiox = ceil(dolxr/.5) ;
Nx = (N-1) * ratiox + 1 ;
dolx = 0.5 ;
end
if(dolyr <=0.5)
ratioy = 1 ;
doly = dolyr ;
Ny = N ;
else
ratioy = ceil(dolyr/.5);
Ny = (N-1)*ratioy + 1 ;
doly = 0.5 ;
end
% choose proper size fft, for minimum value choose 256X256
Nrx = 10 * Nx;
Nry = 10 * Ny;
nfftx = 2^(ceil(log(Nrx)/log(2)));
nffty = 2^(ceil(log(Nry)/log(2)));
if nfftx < 256
nfftx = 256;
end
Search WWH ::




Custom Search