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

39 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

OCDER
OCDER el 13 de Oct. de 2017
NewMat = LargeMat(:, [1:3 37:42]);

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by