How to reduce an existing matrix
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposta accettata
Roger Stafford
il 4 Ago 2013
I think you mean reduce it to (1880x1880).
M = M(1:end-5,1:end-5);
0 Commenti
Più risposte (3)
Roger Stafford
il 4 Ago 2013
Modificato: Roger Stafford
il 4 Ago 2013
M = M(10:10:end,10:10:end);
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!