How will I find the maximum height and range of an object when the given are only points? should I start by making a matrix?
No products are associated with this question.
I'd fit a parabola through them using polyfit
coeffs = polyfit(x, y, 2);
Then you can get fitted values
fittedY = polyval(coeffs, xCoordinates);
To get the range and max height you have to know the starting y. Can we assume it's zero? If so, you can find them numerically using find() and max(), respectively. Give it a shot (no pun intended). Come back if you encounter any difficulties.
If you are not allowed to use 'polyfit', then just solve for coefficients a, b, and c in the equation
y = a*x^2 + b*x + c
The three points will give you three linear equations in the three unknowns a, b, and c. You can either use matlab to solve these or do it by hand. Finally "complete" the square in that expression or else use calculus to find where the derivative is zero, and voila! there are your answers staring you in the face. Good luck!
You are searching for two unknowns , then you need to two variables, points and the angle, you can calculate the angle in first phase of increasing Z,
You can take a look at my submission, it can help :