Getting wrong sine wave for frequency 10KHz
10 ビュー (過去 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/629365/image.png)
plotted signal
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/629370/image.png)
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!