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

44 vues (au cours des 30 derniers jours)
John Hunt
John Hunt le 13 Oct 2017
Commenté : John Hunt le 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by