You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). findnearest.m (https://www.mathworks.com/matlabcentral/fileexchange/2838-findnearest-m), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (759 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Improved to optionally include the found nearest value as a third output argument (V). |
