How to modify mdscale such as to deal with non-Euclidean metric?
Show older comments
I would like to do non-metric multi-dimensional scaling with non-Euclidean metric. That is: the distances in the configuration should be calculated with a p-norm, where p is not necessarily equal to 2. I looked into the source code of mdscale but it seems I am not clever enough to identify the lines that I would have to change. Though it might be quite easy, given that "norm" is able to calculate any type of p-norm, not only the Euclidean one. Hopefully it is one of these calls to norm and I would only have to add a parameter there. If this is not the place where such a question should be asked then please tell me where I should ask this question.
Thanks, Chris
Accepted Answer
More Answers (1)
Adam
on 11 Nov 2012
0 votes
Hi. I am running mdscale on a dissimilarity matrix that includes some NaNs as I only know the distance between certain vertices. However, I also want to impose a minimum distance limit such that no two points are closer than this value. Is this possible? Thanks!
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!