From bug-octave-request at bevo dot che dot wisc dot edu Fri Dec 15 10:58:52 2000 Subject: Correction to documentation for fftshift From: Mark Smith To: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 15 Dec 2000 10:58:39 -0600 This is what the documentation says. ## If V is a vector of E datas corresponding to E time samples spaced ## of Dt each, then fftshift (fft (V)) correspond to frequencies ## ## f = linspace (-E/(4*DT), (E/2-1)/(2*DT), E) ## ## I think the above calculation of frequency is incorrect. It should be ## ## for E even ## f = linspace( -fn, fn-fn/(E/2), E) ## ## for E odd ## f = linspace( -fn, fn, E) ## ## where fn is the Nyquist frequency ## ## fn = 1/(2*dt) Mark Smith ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------