Determine if a coordinate is on a trajectory path?

3 views (last 30 days)
Hello,
I have the equations for a projectile motion equation.
I would like to determine if a specific point is within a small range with respect to that curve.
"Will the ball pass near this point? True of false"
How would I implement this?
  1 Comment
Mario Malic
Mario Malic on 11 Dec 2020
If you plug x coordinate in the equation of motion, the value you obtain will be equal to y coordinate, if the the point lies on the path.

Sign in to comment.

Answers (1)

John D'Errico
John D'Errico on 11 Dec 2020
Edited: John D'Errico on 11 Dec 2020
You COULD use the distance2curve tool I have posted on the file exchange. Since this is certainly for homework, you may or may not be willing to use a file exchange tool. Your choice.
Alternatively, just generate many points along that curve. Then find the CLOSEST point from the set of all points you just generated.

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!