findsubmat

버전 1.2.0.0 (3.73 KB) 작성자: Matt Fig
Finds one matrix (a sub-matrix) within another.
다운로드 수: 3.7K
업데이트 날짜: 2009/6/17

라이선스 보기

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.

인용 양식

Matt Fig (2024). findsubmat (https://www.mathworks.com/matlabcentral/fileexchange/23998-findsubmat), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
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