How to plot parabola?

1 view (last 30 days)
Shaira Grace Baliong
Shaira Grace Baliong on 12 Mar 2021
Commented: David Hill on 12 Mar 2021
how can I plot a parabola?

Accepted Answer

David Hill
David Hill on 12 Mar 2021
p=polyfit([0 -3 .5],[2 -1 .75],2);
x=-10:.01:10;%whatever you want for x
plot(x,polyval(p,x));
  3 Comments
David Hill
David Hill on 12 Mar 2021
If you a satisfied with the answer, you should accept it to close out the question.

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!