MATLAB – extracting rows of a matrix

Like this: a([1,3],:)

The comma separates the dimensions, : means “entire range”, and square brackets make a list.

Leave a Comment