I hope to show that aliasing occurs for more than one sinusoid
3 views (last 30 days)
Show older comments
Changhyun Kim
on 31 Mar 2022
Commented: Les Beckham
on 31 Mar 2022
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
0 Comments
Accepted Answer
Les Beckham
on 31 Mar 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
2 Comments
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!