image thumbnail

findnearest.m

version 1.0.0.0 (759 Bytes) by Thomas Benson
Find the nearest value in an array to a test value.

6.5K Downloads

Updated 23 Dec 2002

No License

Find the index or subscripts of the nearest value in an array to a test value. A bias argument can be included to only return values greater or less than the search value.

Cite As

Thomas Benson (2022). findnearest.m (https://www.mathworks.com/matlabcentral/fileexchange/2838-findnearest-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!