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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

51 correct solutions
30 incorrect solutions

Last solution submitted on Jul 03, 2015

1 Comment