Getting wrong sine wave for frequency 10KHz

12 visualizaciones (últimos 30 días)
632541
632541 el 25 de Mayo de 2021
Respondida: Stephan el 25 de Mayo de 2021
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

Respuestas (1)

Stephan
Stephan el 25 de Mayo de 2021
Think about your sampling rate:
f = 10000;
t = 0:1/(25*f):0.002;
plot(t,sin(2*pi*f.*t))

Community Treasure Hunt

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

Start Hunting!

Translated by