Deleting every n rows in matrix
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Niet hier
el 13 de Abr. de 2021
Comentada: Niet hier
el 14 de Abr. de 2021
I have a matrix of m x n
I want to keep the first row and then delete 14 rows and then preserve the 16th row, then delete the next 14 rows and preserve the 31th row.
What is the best way to do this?
0 comentarios
Respuesta aceptada
David Hill
el 13 de Abr. de 2021
Editada: David Hill
el 13 de Abr. de 2021
newMatrix=oldMatrix(1:15:end,:);
Más respuestas (1)
Ver también
Categorías
Más información sobre Data Types en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!