Write a parabola function to automatically set up and solve


Question: Write a parabola function to automatically set up and solve the system of equations for a parabola defined by y=c1x^2+c2x+c3.

The function definition should be 'function c = parabola(x,y)'.

The function should take two input vectors x and y, each of length three, that define three points through which the parabola passes. The function should return a vector of the three coefficients ci.

Find the equation of the parabolas passing through (-2,-2), (-1,1), (2,-1).

Then use the ci to create a vector of 100 points for -3<=x<=3 that match the equation of the parabola and plot these points along with the original three points to verify that the equation of the parabola has been obtained correctly.

I am not sure how to answer the question. Can anyone help me?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a parabola function to automatically set up and solve
Reference No:- TGS0962049

Expected delivery within 24 Hours