MATLAB Answers

how to create a half cosine wave

18 views (last 30 days)
clowen
clowen on 18 Feb 2016
Answered: Moe_2015 on 18 Feb 2016
s=cos(t) for -pi/2 to pi/2 else 0

  0 Comments

Sign in to comment.

Accepted Answer

Moe_2015
Moe_2015 on 18 Feb 2016
If you are talking about plotting a half cosine wave you could do something like this:
t=-pi/2:0.0001:pi/2;
plot(t,cos(t))

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!