how to draw a quadratic equation

1 次查看(过去 30 天)
how to draw this quadratic equation, when I tried to draw it it gives me a linear draw :(
syms x
y=(-53.68/(2*230))*((x).^2)+500.0089*x+55
figure
fplot(y,[-55 55])
grid

回答(1 个)

Star Strider
Star Strider 2021-5-3
It is definitely close to linear in the region you are plotting it.
To plot it and see its quadratic shape, find the inflection point and use that as the centre of the plot range.
Try this —
syms x
y=(-53.68/(2*230))*((x).^2)+500.0089*x+55
y = 
y_inflpt = vpasolve(diff(y)==0)
y_inflpt = 
2142.3630216095379293298534164136
figure
fplot(y,[-55 55]+double(y_inflpt))
grid
.

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by