When I run it Why there is no picture

1 次查看(过去 30 天)
x=0:50/pi:2*pi;
y=cos(x).*[0.5+3*sin(x)./(1+x.^2)];
plot(x,y)
When I run it Why there is no picture could anyone help me thx
  2 个评论
per isakson
per isakson 2017-3-19
编辑:per isakson 2017-3-19
Did you check the values of x and y, respectively?
ding xian zhi
ding xian zhi 2017-3-19
I find the problem It should be pi/50 not 50/pi

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2017-3-19
x=0:pi/50:2*pi;

标签

Community Treasure Hunt

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

Start Hunting!

Translated by