Effacer les filtres
Effacer les filtres

Function not accepting all available x values

1 vue (au cours des 30 derniers jours)
DONGUK KIM
DONGUK KIM le 23 Avr 2020
So I wrote a simple code to get a plot of a function
x = linspace(0,100,101);
y = 4*x.*(x+1) / (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2)
plot(x,y);
and for some reason y only comes out as a single value
Is there any reason why this might be happening?

Réponse acceptée

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 23 Avr 2020
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by