function rows = findrows(M, v)
% FINDROWS Find rows which are equal to a specified vector
% rows = findrows(M, v)

temp = abs(M - repmat(v, size(M, 1), 1));
rows = find(sum(temp,2) == 0);
