Code covered by the BSD License  

Highlights from
lookup

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

lookup

by

 

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

| Watch this File

File Information
Description

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

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

Contact us