lookup

This function will return the indices of a vector that are closest to the numbers in another.
359 Downloads
Updated 7 Jan 2013

View License

Program can use the last, next, or closest value. Assumes that the lookup values are already sorted.

Written in c, so the operation is fast. Type "mex lookup.c" in matlab before use.

You might need a free compiler if it was not installed with your matlab:
http://www.mathworks.com/support/compilers/R2012b/win64.html

Cite As

Mattias Karlsson (2024). lookup (https://www.mathworks.com/matlabcentral/fileexchange/39728-lookup), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
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!

lookup/

Version Published Release Notes
1.0.0.0