Code covered by the BSD License  

Highlights from

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 3.08 KB File ID: #39728 Version: 1.0




This function will return the indices of a vector that are closest to the numbers in another.

| Watch this File

File Information

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:

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us