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

38 次查看(过去 30 天)
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 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by