MATLAB Answers


How can I create a new matrix from certain columns from another matrix?

Asked by John Hunt on 13 Oct 2017
Latest activity Commented on by John Hunt on 13 Oct 2017
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?


Sign in to comment.

1 Answer

Answer by OCDER
on 13 Oct 2017
 Accepted Answer

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

  1 Comment

Sign in to comment.