Minkowski distance and pdist

5 visualizaciones (últimos 30 días)
med-sweng
med-sweng el 7 de En. de 2014
Minkowski's distance equation can be found here.
If we want to calculate the Minkowski distance in MATLAB, I think we can do the following (correct me if I'm wrong):
dist=pdist([x(i);y(j)],'minkowski');
Up till here, the above command will do the equation shown in the link.
Now, to Minkowski's distance, I want to add this part -m(i)^m, where m(i) is some value.
I saw the pdist source code, but, want to ask, how can I modify Minkowski's distance by adding this simple part, either in the pdist code, or from the calling code (I think we may have to make some change in the parameters).
Thanks.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by