extract array from a matrix
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ADC
am 29 Aug. 2018
Kommentiert: ADC
am 15 Jan. 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 Kommentare
Akzeptierte Antwort
Christian Heigele
am 29 Aug. 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!