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.
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...
Word Counting and Indexing
Find nearest prime number less than input number
Determine the number of odd integers in a vector
Spot the First Occurrence of 5
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office