How to remove all the rows containing a substring from a table?
    2 views (last 30 days)
  
       Show older comments
    
I need to remove all the rows containing the substring Downstream from the table.

0 Comments
Accepted Answer
  Wan Ji
      
 on 11 Aug 2021
        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 Comments
See Also
Categories
				Find more on Software Development Tools in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

