How to find the distances between two points in X-Y plane?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two matrices with x values in column 1 and y values in column 2.
I have to find the distances between the values in matrix 1 and matrix 2.
Is there a function to directly find the euclidean distance between the points in both the matrices?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Bhaskar R
am 20 Sep. 2019
You can use
pdist
command if you have Statistics and Machine Learning Toolbox with different variations of distance metrics like euclidean, cosine, hamming, etc
0 Kommentare
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!