- fs < 2f - under sampling
- fs = 2f - perfect sampling
- fs >2f - over sampling
I need to under sample, perfect sample, and over sample a sinusoidal signal.
66 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aman Mann
am 26 Mär. 2020
Beantwortet: Divya Yerraguntla
am 31 Mär. 2020
The signal is x(t) = sin(200*pi*t)
I need to under sample, perfect sample, and over sample this signal.
I know the frequency would be 100 Hz but after that I am lost entirely.
How would I approach this question in MatLab
0 Kommentare
Akzeptierte Antwort
Divya Yerraguntla
am 31 Mär. 2020
Hi Aman,
As the frequency of signal is 100Hz(f) the sampling frequency:
To be able to sample signals with this sampling frequency and plot them in MATLAB you could use the following simple code:
t = 0:1/fs:1 % for every 1/fs second a sample of the sine wave would be taken
y = sin(2*pi*100*t) % input signal
plot(t,y)
By changing fs according to your requirement you could plot under sampled, perfectly sampled and over sampled signals.
Hope it helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!