Cody

Problem 2592. LocateMembership | Membership of Matrix in another matrix

Created by Vishal in Community

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

54.05% Correct | 45.95% Incorrect
Last solution submitted on Jan 24, 2019

Problem Comments

Solution Comments

Recent Solvers15

Suggested Problems

More from this Author6

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!