How to remove all the rows containing a substring from a table?
조회 수: 4 (최근 30일)
이전 댓글 표시
I need to remove all the rows containing the substring Downstream from the table.
댓글 수: 0
채택된 답변
Wan Ji
2021년 8월 11일
Assume the table is named 'myTable'.
Then
p = arrayfun(@(i)strncmpi(myTable.beregnings{i}(end:-1:1),'maertsnwod',10),(1:1:size(myTable,1))','uniform',true);
newTable = myTable(~p,:);
Your newTable is therefore what you want!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!