How can I produce a plot like the one in the picture using quadratic equation in MATLAB?
5 views (last 30 days)
Show older comments

0 Comments
Answers (1)
Star Strider
on 29 Oct 2022
I have no idea what the picture demonstrates.
Perhaps something like this —
a = randn
b = randn
c = randn
r = roots([a b c])
fcn = @(x) a*x.^2 + b*x + c;
xinterval = [-10 10];
figure
fimplicit(fcn, xinterval, 'DisplayName','Function Roots')
yl = ylim;
hold on
fplot(fcn, xinterval, 'DisplayName','Function Plot')
hold off
ylim(yl)
grid
legend('Location','best')
.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!