hi..lets say there i a vector x=[1:3:50]..how can i find closest number to 25 in this vector using find??
Show older comments
hi..lets say there is a vector x=[1:3:50]..how can i find closest number to 25 in this vector using find??
4 Comments
Prasenjit Dewanjee
on 2 Feb 2016
Stephen23
on 2 Feb 2016
Does the question specifically say the "closest" number, or should it be an exact matching number.
Prasenjit Dewanjee
on 2 Feb 2016
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!