Eric
2009-04-21 15:58:01 UTC
I have an array of spatial coordinates and a matrix of time values corresponding to these coordinates. I want to generate a wavennumber vs. frequency plot using a 2 dimension fourier transform.
Is it correct to merge the spatial coordinate matrix with the time matrix so that the coordinate values are in the first row and the corresponding time values are the columns? And then to get the wavenumber-frequency diagram, a 2d-fft would be applied to the whole matrix.
example code:
fft2(W); % W has spatial coordinate values in the first row and time values down each column
plot(abs(W));
Is it correct to merge the spatial coordinate matrix with the time matrix so that the coordinate values are in the first row and the corresponding time values are the columns? And then to get the wavenumber-frequency diagram, a 2d-fft would be applied to the whole matrix.
example code:
fft2(W); % W has spatial coordinate values in the first row and time values down each column
plot(abs(W));