PDIST does not accept complex data for built-in distances

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 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

質問済み:

2014 年 1 月 8 日

回答済み:

2014 年 1 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by