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

5 次查看(过去 30 天)
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

采纳的回答

Les Beckham
Les Beckham 2022-3-31
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by