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

38 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

OCDER
OCDER il 13 Ott 2017
NewMat = LargeMat(:, [1:3 37:42]);

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by