MATLAB: How to create a new matrix from certain columns from another matrix

multiple columnsnew matrix

If I have a large matrix (60000,51) and I want the first three columns and the 37-42 columns in a new matrix how can I do that?

Best Answer

NewMat = LargeMat(:, [1:3 37:42]);