You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function z = ft(a,dims) % function z = ft(a,[dims]);% fft of a with zero frequency in center% if dims is given, perform fft on dimension(s) given% else perform fft on all dimensionsif nargin==1 z = fftshift(fftn(fftshift(a)));else z = a; for d=1:length(dims) dim = dims(d); z = fftshift(fft(fftshift(z,dim),[],dim),dim); endend