Determine if a coordinate is on a trajectory path?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Mario Malic
il 11 Dic 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.
Risposte (1)
John D'Errico
il 11 Dic 2020
Modificato: John D'Errico
il 11 Dic 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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Interpolation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!