PDIST does not accept complex data for built-in distances
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
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!