From: Marianne R on
Hi,

I have some data generated in space-time domain and I want to Fourier transform it to wavenumber-frequency domain. I have nf as my total frequency samples and dt as my sample interval in time while nk is my total wavenumber samples and dx is the sample interval in of space. I have used fft as follows:

Y = fft(X,nf,dt)
YY = fft(Y,nk,dx)

This returns error message about the dimension, that it should be positive integer

Thanks
From: Rune Allnor on
On 17 Jun, 20:08, "Marianne R " <orgyf...(a)yahoo.com> wrote:
> Hi,
>
> I have some data generated in space-time domain and I want to Fourier transform it to wavenumber-frequency domain. I have nf as my total frequency samples and dt as my sample interval in time while nk is my total wavenumber samples and dx is the sample interval in of space. I have used fft as follows:
>
> Y = fft(X,nf,dt)
> YY = fft(Y,nk,dx)

doc fft2

Rune