Select all rows of B into A, where the first colum of B has value n:
A = B(B(:,1) == n,:);
In contrast to that, the following selects all rows of B into A, starting from row index n:
A = B(n:end,:);
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more