Given a matrix, find all elements that exist in every row.
For example, given
A = 1 2 3 5 9 2 5 9 3 2 5 9 1 2 1 5 5 1 3 2
the answer would be the vector '2 5'. Elements should be returned sorted ascending.
Note there is no guarantee that there are any such elements; if there are none, the routine should return the empty set. Also, the matrix might contain NaNs, repeats, or very large or very small elements.
3492 Solvers
Back to basics 13 - Input variables
193 Solvers
351 Solvers
Set the array elements whose value is 13 to 0
639 Solvers
Number of digits in an integer
237 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today