Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

python nyquist zones upgrade in fft sampling

yefj

Advanced Member level 3
Advanced Member level 3
Joined
Sep 12, 2019
Messages
752
Helped
0
Reputation
0
Reaction score
2
Trophy points
18
Activity points
4,170
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.


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)

1679087492037.png

1679087523585.png
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
51,217
Helped
14,653
Reputation
29,584
Reaction score
13,797
Trophy points
1,393
Location
Bochum, Germany
Activity points
292,750
fft delivers fundamental range 0 to fs by design. But you can repeat the cyclical spectrum endlessly, it doesn't contain more information than the fundamental range shows.
 
  • Like
Reactions: yefj

    yefj

    Points: 2
    Helpful Answer Positive Rating

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top