MATLAB Answers

how to find out sub 3 dimensional matrix in large one

1 view (last 30 days)
xuan hau nguyen
xuan hau nguyen on 27 Apr 2017
Commented: Guillaume on 1 May 2017
I want find location of sub 3 dimensional matrix in large one Example
a= [1 2 3; 2 3 4; 3 4 5]
a(:,:,2)= [1 2 3; 2 3 4; 3 4 5]
b=[3 4; 4 5]
b(:,:,2)=[3 4; 4 5]
if subfind(a,b) find out at location (2, 2,2)
please help me
  2 Comments
Guillaume
Guillaume on 1 May 2017
There is no matlab support team on this forum. We're just random volunteers who answer questions that they find interesting.
Questions that are trivial to solve or where the person asking does not appear to have made any effort towards finding a solution are often not interesting

Sign in to comment.

Answers (1)

KSSV
KSSV on 1 May 2017
  1 Comment
xuan hau nguyen
xuan hau nguyen on 1 May 2017
please ! you carefully read my question, my problem find out sub 3 dimension in large 3 dimension matrix.
two answers of you, the first only find location of elements in sub matrix and the second find out in 2 dimensions

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by