findsubmat

Version 1.2.0.0 (3,73 ko) par Matt Fig
Finds one matrix (a sub-matrix) within another.
3,7K téléchargements
Mise à jour 17 juin 2009

Afficher la licence

FINDSUBMAT find one matrix (a sub-matrix) inside another.
IDX = FINDSUBMAT(A,B) looks for and returns the linear index of the
location of matrix B within matrix A. The index IDX corresponds to the location of the first element of matrix B within matrix A. Only works for 2-d matrices or vectors, both of which may contain NaNs or Infs.

[R,C] = FINDSUBMAT(A,B) returns the row and column instead.

I would like to extend to N-D but don't have the time right now. This may be a future enhancement, but I believe the file stands on it's own just fine too.

Email me if bugs are found, thanks.

Citation pour cette source

Matt Fig (2024). findsubmat (https://www.mathworks.com/matlabcentral/fileexchange/23998-findsubmat), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Denoising and Compression dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.2.0.0

Faster engine for larger B matrices.

1.1.0.0

Added ability to deal with NaNs, as suggested by Urs. S.

1.0.0.0