How to remove all the rows containing a substring from a table?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chiara Scarpellini
am 10 Aug. 2021
Bearbeitet: Stephen23
am 11 Aug. 2021
I need to remove all the rows containing the substring Downstream from the table.
0 Kommentare
Akzeptierte Antwort
Wan Ji
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!