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.54% Correct | 60.46% Incorrect
Last Solution submitted on Oct 31, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers585

Suggested Problems

Community Treasure Hunt

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

Start Hunting!