Determine if a coordinate is on a trajectory path?

1 Ansicht (letzte 30 Tage)
Austin Boyle
Austin Boyle am 11 Dez. 2020
Bearbeitet: John D'Errico am 11 Dez. 2020
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 Kommentar
Mario Malic
Mario Malic am 11 Dez. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

John D'Errico
John D'Errico am 11 Dez. 2020
Bearbeitet: John D'Errico am 11 Dez. 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.

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by