nearestpoint(x, y, m)

NEARESTPOINT - find the nearest value in another vector

Download
Download

You are now following this Submission

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

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

Download
4.1.0

fixed error mentioned by Julian (D was requested but no nearest point was found).

Download
1.1.0

Updated function to avoid errors when called with NaNs and empty variables. Thanks Drew.

Download
1.0.0

corrected error when using 'prev' option

Download