how to create a half cosine wave

6 Ansichten (letzte 30 Tage)
clowen
clowen am 18 Feb. 2016
Beantwortet: Moe_2015 am 18 Feb. 2016
s=cos(t) for -pi/2 to pi/2 else 0

Akzeptierte Antwort

Moe_2015
Moe_2015 am 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))

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Programming 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!

Translated by