I hope to show that aliasing occurs for more than one sinusoid

3 Ansichten (letzte 30 Tage)
I want to show that aliasing occurs for more than one sinusoid, such as sample like this
x(t) = 3*cos(2*pi*300*t+pi/3) + 8*cos(2*pi*800*t-pi/5) at fs=500Hz
% fs means sample frequency
.
.
truly thnx for kindness

Akzeptierte Antwort

Les Beckham
Les Beckham am 31 Mär. 2022
Perhaps you are looking for something like this?
t = 0:1/500:0.02;
x = 3*cos(2*pi*300*t+pi/3) + 8*cos(2*pi*800*t-pi/5);
plot(t,x)
t = 0:1/50000:0.02;
x = 3*cos(2*pi*300*t+pi/3) + 8*cos(2*pi*800*t-pi/5);
hold on
plot(t,x)
legend('sampled at 500 Hz - aliasing', 'sampled at 50 KHz')
title 'Sum of two sinusoids at 300 and 800 Hz'
grid on

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots 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!

Translated by