how to remove some row or column of a matrix at once?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
lets say i have a 100x100 matrix and i want to remove row 71-100 so it become 100x70 matrix
0 Kommentare
Antworten (2)
Sean de Wolski
am 6 Nov. 2012
Note you say row but the new size of your matrix removed columns
Here are two ways to remove columns:
x = x(:,1:70); %glass half full
or
x(:,71:end) = []; %glass half empty
0 Kommentare
Siehe auch
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!