MATLAB Answers

Getting wrong sine wave for frequency 10KHz

10 ビュー (過去 30 日間)
Kaveri A
Kaveri A 2021 年 5 月 25 日
回答済み: Stephan 2021 年 5 月 25 日
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

回答 (1 件)

Stephan 2021 年 5 月 25 日
Think about your sampling rate:
f = 10000;
t = 0:1/(25*f):0.002;

Community Treasure Hunt

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

Start Hunting!

Translated by