Problem 2592. LocateMembership | Membership of Matrix in another matrix

Let a and b be given by

 a = [ 2 1 1 1   
       1 2 1 1 
       1 1 2 1 
       1 1 1 2
       4 0 0 0 ] 
 b = [ 2 1 1
       1 2 1
       1 1 2 ]

then b can be created using a (b is wholly present in a). So output should be location of central element of b in a.

Here output is [3,3] else it should be [0,0].

Solution Stats

52.94% Correct | 47.06% Incorrect
Last Solution submitted on Oct 03, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers22

Suggested Problems

More from this Author6

Problem Tags

Community Treasure Hunt

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

Start Hunting!