Find approximate match between 2 matrices.
Show older comments
Hi all,
I have 2 matrices of 10000 x 3 and 15000 x 3 of floating numbers. where in for example
A=[x1,y1,z1] and B=[x2,y2,z2]
A=[22.35 55.36 110.72 & B=[12.65 15.36 22.36
21.48 -54.35 -35.65 22.35 54.36 113.36
32.64 65.35 -110.35 15.36 175.23 23.65
23.35 54.36 112 6.56 18.56 -72.36
6.35 -90.35 -156.36 7.35 -92.32 -153.72
19.36 -12.36 176.53 18.72 -10.36 176.78
22.36 15.36 22.36] 23.36 17.36 19.88]
I want to approximate match x1 to x2,y1 to y2, and z1 to z2 with tolerance of +/- 1.0000 for x, +/- 2.0000 for y and +/- 3.000 for z matching. If I find approximate match, I want to make a separate matrix of of A1 and B1.
A1=[x11,y11,z11] and B1=[x21,y21,z21]
A1=[23.35 55.36 110.72 & B1=[22.35 54.36 113.36
22.35 54.36 112 22.35 54.36 113.36
6.35 -90.35 -156.36 7.35 -92.32 -153.72
19.36 -12.36 176.53 18.72 -10.36 176.78
22.36 15.36 22.36] 23.36 17.36 19.88]
Where A1 is the values of A coinciding with B and B1 is the coinciding values of A with B. Such that size of A1 and B1 are same.
1 Comment
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!