Can't find minkowski function in pdist2 function source code

Hi guys, I was trying to implement a function that calculates the Minkowski distance of 2 matrices, with a given power of p.
I notice that the pdist2 function does the same job by:
D = pdist2(X,Y,'minkowski',p)
I would like to find out more about its implementation and looked up the source code of pdist2. However, I can't seem to find the function which indicates 'minkowski' (it's not even in the metric argument). Did I look at the wrong place...?
Thanks in advance!

1 件のコメント

Torsten
Torsten 2019 年 8 月 1 日
Use
edit pdist2.m
in the MATLAB environment.

サインインしてコメントする。

回答 (0 件)

質問済み:

2019 年 8 月 1 日

編集済み:

2019 年 8 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by