Borrar filtros
Borrar filtros

Remove the entire rows of 'Unknown' from a table

1 visualización (últimos 30 días)
sarah Abdellahi
sarah Abdellahi el 9 de Oct. de 2018
Comentada: jonas el 9 de Oct. de 2018
Hello :) I have a table that contains some 'Unknown'. I would like to remove the entire rows of any columns that is 'Unknown'.
Thank you

Respuesta aceptada

Adam Danz
Adam Danz el 9 de Oct. de 2018
Assuming the data are stored in a table named ' Valley ', here's how you can remove any rows that contain an ' Unknown '.
Valley(any(strcmp(table2cell(Valley), 'Unknown'),2), :) = []

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by