euclidean distance between two points with different dimensions
Mostrar comentarios más antiguos
If I have 2 points one is 2d point (1,2) and another 3d point (1,2,4) is there a way to measure the distance or the euclidean distance between them?
Any suggestions on how to measure the distances between two different point with different dimensions?
Respuestas (1)
Star Strider
el 5 de Mzo. de 2016
0 votos
You would have to ‘create’ a third dimension for the first point (perhaps (1,2,0) to calculate its distance from the second (1,2,4). You cannot calculate the Euclidean distance between points with different dimensions.
3 comentarios
Image Analyst
el 5 de Mzo. de 2016
Unless the "point" was actually a line along the 3rd dimension and you used the point-to-line distance formula https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line but I don't think CC_had meant this situation.
CC_had
el 8 de Mzo. de 2016
Star Strider
el 8 de Mzo. de 2016
To the best of my knowledge, you cannot calculate Euclidean distances between objects with different dimensions. I do not know of any metric that would allow you to do that.
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!