Removing rows from array using indices
62 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pelajar UM
el 1 de Nov. de 2021
Comentada: Star Strider
el 1 de Nov. de 2021
I have a 2530x1 array named Rowidx containing the indices of rows that I want to remove from several other arrays that have different dimenions.
What's the best way of doing this in MATLAB?
0 comentarios
Respuesta aceptada
Star Strider
el 1 de Nov. de 2021
If ‘Rowidx’ is a logical array, that might not work as desired. If it is a numerical array, then if ‘A’ is any of the arrays —
A(Rowidx,:) = [];
would work.
.
10 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!