Borrar filtros
Borrar filtros

plot a quadratic equation

79 visualizaciones (últimos 30 días)
Anvinder  Singh
Anvinder Singh el 29 de Feb. de 2016
Respondida: MUSISI el 11 de Abr. de 2024
I am to plot a quadratic equation and see how it looks . This is my code : x=[-1:0.05:3]; f=(3*(x.^2))-(2*x); plot(f) xlim([-3 90]);
when i check online graphs fro this equation mine doesnt exactly match ?

Respuestas (2)

Star Strider
Star Strider el 29 de Feb. de 2016
I don’t know what doesn’t ‘exactly match’, but perhaps changing your plot call to:
plot(x,f)
will help.

MUSISI
MUSISI el 11 de Abr. de 2024
x=(1:0.5:10);
f=(x.^2+5*x+6);
plot(x,f);

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by