Mahalanobis distance between two vectors in MATLAB
조회 수: 2 (최근 30일)
이전 댓글 표시
I have the following two vectors, and trying to find the Mahalanobis distance between them. The two vectors are as follows:
A=[2,4,5,7];
B=[6,3,8,1];
For calculating the Mahalanobis distance, I did the following:
> mahal(A(:),B(:))
For that, I got the following results:
0.6466
0.0259
0.0259
0.6466
But, how can I get one value, as when you calculate Euclidean distance for instance?
Thanks.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!