Plotting -3|siny|

1 次查看(过去 30 天)
Bimal Bhattarai
Bimal Bhattarai 2019-6-22
评论: infinity 2019-6-23
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???
infinity
infinity 2019-6-23
Hello,
You are right. I have changed it to the answer.

请先登录,再进行评论。

回答(1 个)

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

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by