How to remove all the rows containing a substring from a table?
1 次查看(过去 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 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!