How to reduce an existing matrix
Mostrar comentarios más antiguos
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 comentario
Azzi Abdelmalek
el 4 de Ag. de 2013
What do you mean by reduce? Please give a short example
Respuesta aceptada
Más respuestas (3)
Sausan Khomusi
el 4 de Ag. de 2013
0 votos
Roger Stafford
el 4 de Ag. de 2013
Editada: Roger Stafford
el 4 de Ag. de 2013
M = M(10:10:end,10:10:end);
Cedric
el 4 de Ag. de 2013
buffer = M(:,1:10:end) ;
M_reduced = buffer(1:10:end,:) ;
1 comentario
Sausan Khomusi
el 4 de Ag. de 2013
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!