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

조회 수: 10 (최근 30일)
John Hunt
John Hunt 2017년 10월 13일
댓글: John Hunt 2017년 10월 13일
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?

채택된 답변

OCDER
OCDER 2017년 10월 13일
NewMat = LargeMat(:, [1:3 37:42]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by