yefj
Advanced Member level 5
Hello,using python I have sampled a signal and made FFT to see the spectral picture of the time domain signal. the plot bellow shows only 1st and 2nd nyquist zone. I want to expend the spectral image and see the 3rd and 4th nyquist zones.
i have tried to double number of samples but it only expand the previos image two times. where did i go wrong recreating addional nyquist zones? Thanks.
i have tried to double number of samples but it only expand the previos image two times. where did i go wrong recreating addional nyquist zones? Thanks.
Code:
Fs=200e3;#Hz
Ts=1/Fs;
dt=np.arange(0,1,Ts)
f1=10e3;
f2=20e3;
f3=30e3;
y=5*np.sin(2*pi*f1*dt)+5*np.sin(2*pi*f2*dt)+10*np.sin(2*pi*f3*dt)
L=np.size(y)
freq_vec=Fs*np.arange(0,1,Ts)
X=fft(y,L)
plt.plot(freq_vec,abs(X)/(0.5*L))
z=abs(X)