euclidean distance between two points with different dimensions
7 views (last 30 days)
Show older comments
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?
2 Comments
John BG
on 5 Mar 2016
have you considered that both points have same dimensions?
the points you call 2D have 3rd dimension zeroed
Answers (1)
Star Strider
on 5 Mar 2016
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 Comments
Star Strider
on 8 Mar 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.
See Also
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!