How to delete a row with specific letter
Show older comments
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
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 7 Jul 2015
Edited: Azzi Abdelmalek
on 7 Jul 2015
A(ismember(A(:,1),'K'),:)==[]
6 Comments
alex solomon
on 7 Jul 2015
Azzi Abdelmalek
on 7 Jul 2015
Try
A(ismember(A(:,1),{'K'}),:)==[]
alex solomon
on 7 Jul 2015
Azzi Abdelmalek
on 7 Jul 2015
Sorry it s
A(ismember(A(:,1),'K'),:)=[]
Jan
on 7 Jul 2015
@Azzi: There is no need for ismember. The "==" is a typo.
alex solomon
on 7 Jul 2015
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!