How to add Hann 5 cycles to the sine wave plot?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ramesh Bala
am 9 Aug. 2019
Kommentiert: Ramesh Bala
am 9 Aug. 2019
I would like to know how to add cycle to the sine plots?
The below one is a sine plot continuous how to make it short for only 5 cycles?where x here is the time and 200 is the load (kHz)
plot(x,sin(2*pi*200e3*x))
2 Kommentare
darova
am 9 Aug. 2019
One full cycle of sine is 2pi
You should make your argument of sine: 0 .. 2pi*5
Change your x such that:
0 ... 2pi*200e3 → 0 ... 2pi*5
Akzeptierte Antwort
darova
am 9 Aug. 2019
One full cycle of sine is 2pi
You should make your argument of sine: 0 .. 2pi*5

14 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Time Series Collections finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!