Find the euclidean distance between elements of two matrices, one element of first one from all elements of the second one.
Mostra commenti meno recenti
I have
{(x1,y1)|x1 belongs to X1 and y1 belongs to Y1}
{(x2,y2)|x2 belongs to X2 and y2 belongs to Y2}
and:
X1=[68.0178 75.0520 51.1820 35.4534
152.7847 158.3533 108.2593 197.1259
241.1594 255.1793 271.9570 234.6449
360.2638 358.3571 399.6156 388.6544]
Y1=[45.4695 130.8915 200.9802 304.2660
41.3427 172.6104 284.3213 337.8186
21.7732 178.2872 292.2332 370.4340
12.5655 169.3788 277.0954 372.9513]
X2=[22.4277 67.3031
226.9055 247.7492]
Y2=[ 62.3716 217.7124
23.6445 282.9643]
------------------------------------------
I want to get the distances between each one of (x1,y1)s from all of (x2,y2)s. (x1,y1), (x2,y2) are coordinates of some points.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Subplots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!