Borrar filtros
Borrar filtros

help deleting rows with column value in a table of data

1 visualización (últimos 30 días)
Maritza Torres
Maritza Torres el 9 de Dic. de 2019
Editada: Maritza Torres el 9 de Dic. de 2019
I need help deleting all the rows with value of '2' in the array column in the data on my table

Respuestas (2)

Bhaskar R
Bhaskar R el 9 de Dic. de 2019
Editada: Bhaskar R el 9 de Dic. de 2019
Suppose your table data stored in the variable T
T(find(T.ARRAY == 2),:) = [];
  3 comentarios
Bhaskar R
Bhaskar R el 9 de Dic. de 2019
Editada: Bhaskar R el 9 de Dic. de 2019
Can you provide small portion of your table data in mat file
Bhaskar R
Bhaskar R el 9 de Dic. de 2019
No, it is not a mat (MATLAB saved workspace file). It is an image.
Run the below command
save tablefile ABER1001
You will see the tablefile.mat in the current working directory.
Share tablefile.mat file

Iniciar sesión para comentar.


Maritza Torres
Maritza Torres el 9 de Dic. de 2019
  2 comentarios
Bhaskar R
Bhaskar R el 9 de Dic. de 2019
Run this command
ABER1001(find(ABER1001.ARRAY == 2),:) = [];
Maritza Torres
Maritza Torres el 9 de Dic. de 2019
It worked. Thank you so much for all of your help!!!

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by