euclidean distance between two points with different dimensions
이전 댓글 표시
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?
답변 (1개)
Star Strider
2016년 3월 5일
0 개 추천
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
Image Analyst
2016년 3월 5일
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
2016년 3월 8일
Star Strider
2016년 3월 8일
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.
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!