Conditional equation X1=X(y==1) ?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Safouane Chergui
el 13 de Jul. de 2017
Respondida: Fangjun Jiang
el 13 de Jul. de 2017
I have a matrix X and a column vector y. When I write something like X1=X(y==1), I only get the numbers from the first column of X. How to get numbers from all others columns when y==1 ?
0 comentarios
Respuesta aceptada
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!