Finding Distance Between Points and a Curve

5 visualizaciones (últimos 30 días)
Jonathan Pinko
Jonathan Pinko el 24 de Feb. de 2020
Comentada: Adam Danz el 26 de Feb. de 2020
Hi All,
I have attached two plots I would like to analyze. In both of these plots, I would like to find the vertical distance between most of the points (excluding the points that are left of the curves) and the curve. As in, for each point, I would like to imagine a vertical line extending from the point to the curve, and then find the length of this line. Ultimately, I would like to have produced two column vectors, a and b, for each of the two plots, and then create one final column vector, a^2+b^2.
Does anybody have any insight as to how to do this?
Please let me know if I could provide more helpful information as well.
Thanks
  4 comentarios
Jonathan Pinko
Jonathan Pinko el 25 de Feb. de 2020
Adam Danz's approach worked perfectly.
Thank you.
Adam Danz
Adam Danz el 26 de Feb. de 2020
Thanks for the feedback! Sounds like you implemented it without any problems.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by