how to create a half cosine wave

4 visualizaciones (últimos 30 días)
clowen
clowen el 18 de Feb. de 2016
Respondida: Moe_2015 el 18 de Feb. de 2016
s=cos(t) for -pi/2 to pi/2 else 0

Respuesta aceptada

Moe_2015
Moe_2015 el 18 de Feb. de 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))

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by