findmat

Find a matrix in a larger matrix

You are now following this Submission

Find a pattern matrix within a larger matrix. Supports anything that can be converted to a double using double().

Example:
a = [1 2 3;4 2 6;4 3 9];
b = [2 3];
findmat(a,b)
findmat(a,b')

Cite As

Justin Griffiths (2026). findmat (https://www.mathworks.com/matlabcentral/fileexchange/11990-findmat), 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