How to remove all the rows containing a substring from a table?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Chiara Scarpellini
 el 10 de Ag. de 2021
  
I need to remove all the rows containing the substring Downstream from the table.

0 comentarios
Respuesta aceptada
  Wan Ji
      
 el 11 de Ag. de 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 comentarios
Más respuestas (1)
Ver también
Categorías
				Más información sobre Software Development Tools en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


