Azzera filtri
Azzera filtri

When I run it Why there is no picture

1 visualizzazione (ultimi 30 giorni)
ding xian zhi
ding xian zhi il 19 Mar 2017
Commentato: ding xian zhi il 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 Commenti
per isakson
per isakson il 19 Mar 2017
Modificato: per isakson il 19 Mar 2017
Did you check the values of x and y, respectively?
ding xian zhi
ding xian zhi il 19 Mar 2017
I find the problem It should be pi/50 not 50/pi

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by