how to create a half cosine wave

3 ビュー (過去 30 日間)
clowen
clowen 2016 年 2 月 18 日
回答済み: Moe_2015 2016 年 2 月 18 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by