extract array from a matrix
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ADC
el 29 de Ag. de 2018
Comentada: ADC
el 15 de En. de 2019
I need to extract the arrays from a tab that contain an assigned value for instance on the Matrix A take all the rows with contain the value 10 on the first column How Can I Do???
0 comentarios
Respuesta aceptada
Christian Heigele
el 29 de Ag. de 2018
Logical indexing:
A(A(:,1)==10,:)
That states which rows you want to select: A(:,1)==10 , with A(cond, :) you access all those who are selected.
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!