PDIST does not accept complex data for built-in distances

조회 수: 2 (최근 30일)
med-sweng
med-sweng 2014년 1월 8일
답변: Wayne King 2014년 1월 8일
I got an error beside this line of code:
done=pdist([a;a1],'minkowski')>=m;
where a and a1 are two matrices of the same size.
The error was:
Error using pdist (line 144)
PDIST does not accept complex data for built-in distances.
What does that mean? How can I solve this issue?
Thanks.

답변 (1개)

Wayne King
Wayne King 2014년 1월 8일
pdist() does not accept complex-valued data for the distance functions that are not user-defined.
You can define your own distance function to handle complex-valued data.

카테고리

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