Determine if a coordinate is on a trajectory path?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Mario Malic
el 11 de Dic. de 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.
Respuestas (1)
John D'Errico
el 11 de Dic. de 2020
Editada: John D'Errico
el 11 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!