Problem 2592. LocateMembership | Membership of Matrix in another matrix
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
rifat
on 16 Sep 2014
in test case 3, b is not available in a. I might be wrong.. Please Check
Jean-Marie Sainthillier
on 16 Sep 2014
Not logic to ask a scalar (if no location), an array (if 1), and a cell (if 2). And why not add the example (difficult) in the tests ?
Vishal
on 17 Sep 2014
@rifat : updated, thanks for info
Jan Orwat
on 18 Sep 2014
Nice problem. Some solutions (using conv, filter2 etc.) doesn't check conditions properly. Adding a=2*ones(4); b=3*eye(3)+1; or a=0; b=0; or similar can improve the testsuite;
Jean-Marie Sainthillier
on 18 Sep 2014
The solution in the example is [2 2;3 3].
Solution Comments
Show commentsProblem Recent Solvers21
Suggested Problems
-
Find the sum of the elements in the "second" diagonal
1118 Solvers
-
Back to basics 22 - Rotate a matrix
877 Solvers
-
Sum of diagonal of a square matrix
1517 Solvers
-
415 Solvers
-
84 Solvers
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!