Why isn't the plot showing up? (new on programing)

1 vue (au cours des 30 derniers jours)
simon ericsson
simon ericsson le 17 Oct 2021
Commenté : simon ericsson le 17 Oct 2021
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)/(x.^2 + 4.*x + 5);
plot(x,y(x),'r','LineWidth',2)

Réponse acceptée

KSSV
KSSV le 17 Oct 2021
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)./(x.^2 + 4.*x + 5); % element by elememnt division
plot(x,y(x),'r','LineWidth',2)
  1 commentaire
simon ericsson
simon ericsson le 17 Oct 2021
Thank you! I feel stupid when I see it now :(

Connectez-vous pour commenter.

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