I like to find word in a column and if the word is found in the column (let´s say column 3). The value in column 4 should be changed into the value of column 5. How should you do this?

댓글 수: 2

Walter Roberson
Walter Roberson 2018년 4월 12일
Is this a table() object? Or is this a "table" as in a stream of text arranged in a column that is scrapped from a web page?
Brecht Leenmans
Brecht Leenmans 2018년 4월 12일
object

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 12일

5 개 추천

mask = ismember(YourTable{:,3}, TheWord);
YourTable(mask,4) = YourTable(mask,5);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by