Getting wrong sine wave for frequency 10KHz
조회 수: 4 (최근 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!