how to create a half cosine wave

1 次查看(过去 30 天)
s=cos(t) for -pi/2 to pi/2 else 0

采纳的回答

Moe_2015
Moe_2015 2016-2-18
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 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by