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?

채택된 답변

Walter Roberson
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 CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by