How to remove character in table
Mostrar comentarios más antiguos
Hello guys !
(Sorry 4 my english)
I'm trying to remove character in a table that contains some genome sequences (cell vector)... In particular i have:
A = {'T'; 'G'; 'A'; 'TT'; 'TGAT'; 'G'};
My intention is to delete all the rows that contain MORE than one letter.. so the rows 'TT' and 'TGAT' must be deleted.
Can you help me please? Is there some particular function that i can use?
Ty so much
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 31 de En. de 2017
out = A(cellfun(@numel,A) == 1)
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!