Match

Performs a match operation (find ==) where the lookup value isn't restricted to being a scalar.

You are now following this Submission

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 (2026). Match (https://www.mathworks.com/matlabcentral/fileexchange/32779-match), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0