Problem 924. intersection of matrices

Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identical size.
Examples:
Inputs A = [1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1 ]
and B = [0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 0 0 0 0 ]
Output tf is false
Inputs A = [1 1 1 0 1
1 1 1 1 0
0 1 1 1 1
1 0 1 1 1
1 1 0 1 1 ]
and B = [0 1 0 0 0
1 0 0 0 0
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0]
Output tf is true

Solution Stats

39.53% Correct | 60.47% Incorrect
Last Solution submitted on Feb 08, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers575

Suggested Problems

Community Treasure Hunt

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

Start Hunting!