Getting wrong sine wave for frequency 10KHz
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Stephan
il 25 Mag 2021
Think about your sampling rate:
f = 10000;
t = 0:1/(25*f):0.002;
plot(t,sin(2*pi*f.*t))
0 Commenti
Vedere anche
Categorie
Scopri di più su Waveform Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!