nearestpoint(x, y, m)
NEARESTPOINT - find the nearest value in another vector
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Jos (10584) (2026). nearestpoint(x, y, m) (https://in.mathworks.com/matlabcentral/fileexchange/8939-nearestpoint-x-y-m), MATLAB Central File Exchange. Retrieved .
General Information
- Version 4.2.0 (3.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 4.2.0 | updated for newer NL releases |
||
| 4.1.0 | fixed error mentioned by Julian (D was requested but no nearest point was found). |
||
| 1.1.0 | Updated function to avoid errors when called with NaNs and empty variables. Thanks Drew. |
||
| 1.0.0 | corrected error when using 'prev' option |