Getting wrong sine wave for frequency 10KHz
8 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm plotting sine wave with frequency 10KHz.
But not getting it as expected.
What is the reason for this?
Code is here
plotted signal
0 个评论
回答(1 个)
Stephan
2021-5-25
Think about your sampling rate:
f = 10000;
t = 0:1/(25*f):0.002;
plot(t,sin(2*pi*f.*t))
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!