Filter löschen
Filter löschen

When I run it Why there is no picture

2 Ansichten (letzte 30 Tage)
ding xian zhi
ding xian zhi am 19 Mär. 2017
Kommentiert: ding xian zhi am 19 Mär. 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 Kommentare
per isakson
per isakson am 19 Mär. 2017
Bearbeitet: per isakson am 19 Mär. 2017
Did you check the values of x and y, respectively?
ding xian zhi
ding xian zhi am 19 Mär. 2017
I find the problem It should be pi/50 not 50/pi

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 19 Mär. 2017
x=0:pi/50:2*pi;

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by