find the first elements of a column matrix
This would be better as "find the nth element of an array." Also, a column matrix doesn't exist. Perhaps you meant column vector, though the variables in your test cases are row vectors.
298 Solvers
Replace multiples of 5 with NaN
282 Solvers
198 Solvers
393 Solvers
97 Solvers