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 comentarios

Walter Roberson
Walter Roberson el 12 de Abr. de 2018
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 el 12 de Abr. de 2018
object

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Abr. de 2018

5 votos

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

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 12 de Abr. de 2018

Respondida:

el 12 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by