finding closest value in specific row and columm and take value intersecting these.
Show older comments
Hello,
I a have this matrix M for simplification
[120 1.2 1.3 1.4
100 2.2 2.3 2.4
50 3.2 3.3 3.4
0 4.2 4.3 4.4
NaN 0 1000 2200]
and i need to find closest value from first row (1) and last column (5) and take value from intersection of these.
for example a have a variables a=60 (need closest from 1st row) and b=1200 (need closest from 5th column) and i need to return x=3.3
Thanking in advance for your time
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!