I imported data from a large excel file and now I want to delete the rows that have the values of column "dds" equal to 1 or 7. How can I proceed?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Eduardo Rocha
am 23 Okt. 2016
Kommentiert: Eduardo Rocha
am 23 Okt. 2016
I imported data from a large excel file and now I want to delete the rows that have the values of column "dds" equal to 1 or 7. How can I proceed?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Okt. 2016
ddscol = 4; %set according to which column it is in
YourData( ismember(YourData(:,ddscol), [1, 7]), :) = []; %delete the rows where dds is 1 or 7
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!