Splitting a matrix into submatrices by value
Mostrar comentarios más antiguos
Hello, I have a 10000x3 matrix called A. The 3rd column of the matrix consists of 0s and 1s. I want to create 2 submatrices where A1 collects all rows of A that has a 1 in the 3rd column. A2 should collect the rest of the columns. How can I do that? Thanks!
2 comentarios
madhan ravi
el 11 de Oct. de 2018
Editada: madhan ravi
el 11 de Oct. de 2018
Give short example question is not clear . Give an example.
hey yo
el 11 de Oct. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!