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 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2016년 10월 23일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!