How to reduce an existing matrix
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
Azzi Abdelmalek
il 4 Ago 2013
What do you mean by reduce? Please give a short example
Risposta accettata
Più risposte (3)
Sausan Khomusi
il 4 Ago 2013
0 voti
Roger Stafford
il 4 Ago 2013
Modificato: Roger Stafford
il 4 Ago 2013
M = M(10:10:end,10:10:end);
Cedric
il 4 Ago 2013
buffer = M(:,1:10:end) ;
M_reduced = buffer(1:10:end,:) ;
1 Commento
Sausan Khomusi
il 4 Ago 2013
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!