How to reduce an existing matrix
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to reduce an existing matrix (1885x1885) to (188x188), essentially discarding the last 5 rows and columns.
How would I code this. Thanks in advance.
1 Kommentar
Akzeptierte Antwort
Roger Stafford
am 4 Aug. 2013
I think you mean reduce it to (1880x1880).
M = M(1:end-5,1:end-5);
0 Kommentare
Weitere Antworten (3)
Roger Stafford
am 4 Aug. 2013
Bearbeitet: Roger Stafford
am 4 Aug. 2013
M = M(10:10:end,10:10:end);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!