How to reduce an existing matrix
6 visualizaciones (últimos 30 días)
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
Respuesta aceptada
Roger Stafford
el 4 de Ag. de 2013
I think you mean reduce it to (1880x1880).
M = M(1:end-5,1:end-5);
0 comentarios
Más respuestas (3)
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);
0 comentarios
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!