finding nearest distance of a distinct value
Show older comments
Hi, suppose I have a matrix as follows:
I =
1 1 5 1 1 1 8
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 5 2 1 1 1
1 1 1 1 1 5 1
1 1 1 1 1 1 1
I(3,4) is 1 . I need to know the distance and position of nearest 5 of this matrix from this 1. How to do this easily?Thanks in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Industrial Statistics 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!