Prev: How to eliminate empty initalization function in code generated by RTW embedded code?
Next: Smooth surface mesh/grid
From: Marianne R on 17 Jun 2010 14:08 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 17 Jun 2010 14:09
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 |