Mercurial > hg > octave-lyh
diff scripts/signal/fftshift.m @ 4077:b5267e631ba8
[project @ 2002-09-27 22:48:46 by jwe]
author | jwe |
---|---|
date | Fri, 27 Sep 2002 22:48:46 +0000 |
parents | 22bd65326ec1 |
children | 9f7ef92b50b0 |
line wrap: on
line diff
--- a/scripts/signal/fftshift.m +++ b/scripts/signal/fftshift.m @@ -23,12 +23,12 @@ ## and @code{ifft} functions, in order the move the frequency 0 to the ## center of the vector or matrix. ## -## If @var{v} is a vector of @math{E} elements corresponding to @math{E} +## If @var{v} is a vector of @math{N} elements corresponding to @math{N} ## time samples spaced of @math{Dt} each, then @code{fftshift (fft ## (@var{v}))} corresponds to frequencies ## ## @example -## f = linspace (-E/(4*Dt), (E/2-1)/(2*Dt), E) +## f = ((1:N) - ceil(N/2)) / N / Dt ## @end example ## ## If @var{v} is a matrix, the same holds for rows and columns.