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