next up previous
Next: hyperbola.m: Generates hyperbolae Up: Matlab functions Previous: frequences.m: Computes the depth

fftshift_1d: Changes the matrix representation of the result of a Fourier Transform

function y=fftshift_1d(x)
% FFTSHIFT function for matrices, which shifts each vector individually

[m,n] = size(x);
i = 1;
while (i <= n)
	y(1:m,i) = fftshift(x(1:m,i));
	i = i+1;
end



Adrian Perrig
Wed Jun 5 22:28:55 MET DST 1996