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

1 visualización (últimos 30 días)
simon ericsson
simon ericsson el 17 de Oct. de 2021
Comentada: simon ericsson el 17 de Oct. de 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)

Respuesta aceptada

KSSV
KSSV el 17 de Oct. de 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)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by