Remove missing from cell array
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have used readcell to read tabular data.
How can the missing elements be removed?
6×1 cell array
{'a' }
{'b' }
{'c' }
{'d' }
{1×1 missing}
{1×1 missing}
2 comentarios
Respuestas (1)
madhan ravi
el 30 de Mayo de 2019
yourcell(cellfun(@ischar,C))
3 comentarios
Andreas Martin
el 14 de Jul. de 2020
Yes, in that case it doesn't work. Try then this instead:
C( cellfun( @(c) isa(c,'missing'), C ) ) = {[]};
Ver también
Categorías
Más información sobre Cell Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!