Clear Filters
Clear Filters

When I run it Why there is no picture

2 views (last 30 days)
ding xian zhi
ding xian zhi on 19 Mar 2017
Commented: ding xian zhi on 19 Mar 2017
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 Comments
per isakson
per isakson on 19 Mar 2017
Edited: per isakson on 19 Mar 2017
Did you check the values of x and y, respectively?
ding xian zhi
ding xian zhi on 19 Mar 2017
I find the problem It should be pi/50 not 50/pi

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 19 Mar 2017
x=0:pi/50:2*pi;

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!