MATLAB: Searching string in table

searching in table

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?

Best Answer

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