You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Given the number NUM, this function find the closest value to NUM in the vector VEC.
Only search within vector interval, and the vector must be non-monotonic decreasing.
Good for closest longitude/latitude searches etc.
Cite As
Håvard Falck (2026). Closest value (https://in.mathworks.com/matlabcentral/fileexchange/44505-closest-value), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.4.0.0 (1.9 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
