Page 1 of 1

Consider we want to use the np.fft.fft function in python (or fft in Matlab). If we want to obtain 4 equally spaced samp

Posted: Sun Jul 03, 2022 12:13 pm
by answerhappygod
Consider we want to use the np.fft.fft function in python (orfft in Matlab).
If we want to obtain 4 equally spaced samples of the Fouriertransform of the signal x[n] = [5, 4, 3, 2, 1, 0, 2, 1, 0 , -1,-2], what signal y[n] should be the input of the abovefunction?
(Command to be run: np.fft.fft( y[n], 4 ) )
(I've already posted this once and somebody replied I just haveto do fft(x[n], 4), this is NOT the right answer; I have touse a different vector.)