What is the Nyquist frequency for a signal with a maximum frequency component of 5 kHz?
Nyquist frequency is twice the highest frequency component in the signal.
The Nyquist frequency is defined as twice the maximum frequency present in the signal to avoid aliasing. For 5 kHz, it is 10 kHz.
What is the output array when sampling a 1 Hz sine wave at 5 Hz for 5 samples?
import numpy as np fs = 5 # sampling frequency in Hz f = 1 # signal frequency in Hz t = np.arange(5) / fs samples = np.sin(2 * np.pi * f * t) print(np.round(samples, 3))
Calculate sine values at t = 0, 0.2, 0.4, 0.6, 0.8 seconds.
Sampling a 1 Hz sine wave at 5 Hz gives samples at intervals of 0.2 seconds. The sine values at these points match option D.
Given a 7 kHz signal sampled at 10 kHz, what is the frequency of the aliased signal observed after sampling?
Aliased frequency = |sampling frequency - original frequency| when undersampled.
Since sampling frequency is less than twice the signal frequency, aliasing occurs. Aliased frequency = |10 kHz - 7 kHz| = 3 kHz.
Which plot correctly shows the original 6 Hz sine wave and its sampled version at 8 Hz, demonstrating aliasing?
import numpy as np import matplotlib.pyplot as plt fs = 8 f = 6 t_cont = np.linspace(0, 1, 1000) signal_cont = np.sin(2 * np.pi * f * t_cont) t_samp = np.arange(0, 1, 1/fs) signal_samp = np.sin(2 * np.pi * f * t_samp) plt.figure(figsize=(8,4)) plt.plot(t_cont, signal_cont, label='Original Signal (6 Hz)') plt.stem(t_samp, signal_samp, linefmt='r-', markerfmt='ro', basefmt='k-', label='Sampled Signal (8 Hz)') plt.legend() plt.xlabel('Time (s)') plt.ylabel('Amplitude') plt.title('Aliasing Demonstration') plt.show()
Sampling below twice the signal frequency causes aliasing visible as distortion.
Sampling a 6 Hz signal at 8 Hz is below Nyquist rate (12 Hz), causing aliasing visible in the plot as distortion between continuous and sampled points.
You have a signal composed of three sine waves at 1 kHz, 3 kHz, and 4.5 kHz. What is the minimum sampling frequency to sample this signal without aliasing?
Minimum sampling frequency must be at least twice the highest frequency component.
The highest frequency is 4.5 kHz, so minimum sampling frequency is 2 * 4.5 kHz = 9 kHz.
