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

30 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

OCDER
OCDER am 13 Okt. 2017
NewMat = LargeMat(:, [1:3 37:42]);

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by