How to remove all the rows containing a substring from a table?
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Chiara Scarpellini
 il 10 Ago 2021
  
    
    
    
    
    Modificato: Stephen23
      
      
 il 11 Ago 2021
            I need to remove all the rows containing the substring Downstream from the table.

0 Commenti
Risposta accettata
  Wan Ji
      
 il 11 Ago 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 Commenti
Vedere anche
Categorie
				Scopri di più su Software Development Tools in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


