Plotting -3|siny|

My code is showing error in the x=-3abs(siny) part. Please Help
y=-pi:0.1:pi;
x=-3abs(siny);
plot (y,x);

2 个评论

dpb
dpb 2019-6-23
Why not move your Comment to an Answer???
Hello,
You are right. I have changed it to the answer.

请先登录,再进行评论。

回答(1 个)

infinity
infinity 2019-6-23

0 个投票

it should be like that
x=-3*abs(sin(y));

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by