This function filters the rows of a matrix returning always a two dimensional matrix
filterRowMatrix(x, filter)
x
Matrix
filter
Logical or numerical index of rows