Mahalanobis distance between two vectors in MATLAB

조회 수: 2 (최근 30일)
med-sweng
med-sweng 2013년 12월 11일
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개)

카테고리

Help CenterFile 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!

Translated by