Match

Performs a match operation (find ==) where the lookup value isn't restricted to being a scalar.
166 Downloads
Updated 3 Sep 2011

View License

IDX = MATCH(REF, INP) returns the indices of matching elements in the REF array corresponding to each element in the INP array. IDX has the same dimensions as INP. Elements in INP not found in REF return NaN

IDX = MATCH(REF, INP, MISSING) same as above but returns MISSING value instead of NaN

Cite As

James Brooks (2024). Match (https://www.mathworks.com/matlabcentral/fileexchange/32779-match), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
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!
Version Published Release Notes
1.0.0.0