how to draw a quadratic equation
조회 수: 8 (최근 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
댓글 수: 0
답변 (1개)
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_inflpt = vpasolve(diff(y)==0)
figure
fplot(y,[-55 55]+double(y_inflpt))
grid
.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!