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.69% Correct | 60.31% Incorrect
Last Solution submitted on Dec 09, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers590

Suggested Problems

Community Treasure Hunt

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

Start Hunting!