How to delete a row with specific letter
Ältere Kommentare anzeigen
i have a mixed data (1000 by 6) at which the first column contains letter like N, K , L and O. How can i delete a rows which contain letter 'K'. Thanks
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 7 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 7 Jul. 2015
A(ismember(A(:,1),'K'),:)==[]
6 Kommentare
alex solomon
am 7 Jul. 2015
Azzi Abdelmalek
am 7 Jul. 2015
Try
A(ismember(A(:,1),{'K'}),:)==[]
alex solomon
am 7 Jul. 2015
Azzi Abdelmalek
am 7 Jul. 2015
Sorry it s
A(ismember(A(:,1),'K'),:)=[]
Jan
am 7 Jul. 2015
@Azzi: There is no need for ismember. The "==" is a typo.
alex solomon
am 7 Jul. 2015
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!