extract array from a matrix
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Christian Heigele
il 29 Ago 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!