Asked by Kaleesh Bala
on 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))

Answer by darova
on 9 Aug 2019

Accepted Answer

One full cycle of sine is 2pi

You should make your argument of sine: 0 .. 2pi*5

darova
on 9 Aug 2019

Can you accept my answer?

darova
on 9 Aug 2019

I did my best :(

Kaleesh Bala
on 9 Aug 2019

Ah kien problem Thank you so much :)

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 2 Comments

## darova (view profile)

## Direct link to this comment

https://in.mathworks.com/matlabcentral/answers/475555-how-to-add-hann-5-cycles-to-the-sine-wave-plot#comment_733500

## Kaleesh Bala (view profile)

## Direct link to this comment

https://in.mathworks.com/matlabcentral/answers/475555-how-to-add-hann-5-cycles-to-the-sine-wave-plot#comment_733503

Sign in to comment.