Why cant' I plot this graph?

Respuestas (1)

David Hill
David Hill el 23 de Nov. de 2020

0 votos

You need .^ for elementwise array operations
x = linspace(0,2,250);
y = 15*x.^3-9*x.^2-36*x+36;
plot(y,x)

Categorías

Más información sobre Polynomials en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Nov. de 2020

Respondida:

el 23 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by