필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Remove table entries with specified chars in variable

조회 수: 2 (최근 30일)
Budding MATLAB Jockey
Budding MATLAB Jockey 2020년 6월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Suraj Sudheer Menon
Suraj Sudheer Menon 2020년 6월 26일
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.

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by