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 = ift(a,dims) % function z = ift(a,[dims]);% ifft of a with zero frequency in center% if dims is given, perform ifft on dimension(s) given% else perform ifft on all dimensionsif nargin==1 z = fftshift(ifftn(fftshift(a)));else z = a; for d=1:length(dims) dim = dims(d); z = fftshift(ifft(fftshift(z,dim),[],dim),dim); endend