Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Remove table entries with specified chars in variable

2 Ansichten (letzte 30 Tage)
Budding MATLAB Jockey
Budding MATLAB Jockey am 26 Jun. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi there I have a table and the one feature I would like to add to my code is to search for a match to a string and remove those entries entirely.
I can't figure out what functions to even use. I vaguely understand the regexpression syntax but I can only figure out how to use that to modify the elements not ID that entire row for deletion.
Any help would be appreciated!
  1 Kommentar
Suraj Sudheer Menon
Suraj Sudheer Menon am 26 Jun. 2020
Let the table name be "data".
idx=(contains(data{: , :},<searchValue>)
data(idx,:)=[];
%idx stores the row index in which the specified search string can be found.These rows can be deleted by replacing them with an empty matrix.

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by