How to reduce an existing matrix
Afficher commentaires plus anciens
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 commentaire
Azzi Abdelmalek
le 4 Août 2013
What do you mean by reduce? Please give a short example
Réponse acceptée
Plus de réponses (3)
Sausan Khomusi
le 4 Août 2013
0 votes
Roger Stafford
le 4 Août 2013
Modifié(e) : Roger Stafford
le 4 Août 2013
M = M(10:10:end,10:10:end);
Cedric
le 4 Août 2013
buffer = M(:,1:10:end) ;
M_reduced = buffer(1:10:end,:) ;
1 commentaire
Sausan Khomusi
le 4 Août 2013
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!