Problem 924. intersection of matrices
Solution Stats
Problem Comments
-
8 Comments
I guess zeros are not included as common elements.
Yes. Seems to be a somewhat "ill-posed" problem...
What does "they share a common row, column entry" mean?
I think it should be a non-zero common row, column entry.
Just consider the problem to be "Is there any i, j such that A(i,j) == B(i,j) == 1"
I guess it means intersection of arrays, literally.
Do you mind do explain in a different way? it is not clear for what exactly i should do. It miss 3 problems for me, but in any of them it is not clear the problem itself.
A small addendum to the comment of Chien-Han Su
Just consider the problem to be "Is there any i, j such that A(i,j) == B(i,j) and A(i,j) or B(i,j) ~=0"
Solution Comments
-
1 Comment
It's more difficult to figure out the problem statement.
-
1 Comment
Re-wording is needed for this problem. Here is how I interpreted the problem:
1. "common row, column entry" means a same value at the same row-column location
2. zeros don't count. You need to check for non-zeros...
Problem Recent Solvers517
Suggested Problems
-
1556 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1342 Solvers
-
243 Solvers
-
Sum of first n positive integers
526 Solvers
-
07 - Common functions and indexing 6
412 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!