replace nan with blank
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abc={1,[],'weak'} now i want to remove [] from above variable abc and give me abc={1,'weak'} only, can any one suggest me any method for it.
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 14 de Mzo. de 2013
Editada: Andrei Bobrov
el 14 de Mzo. de 2013
out = abc(~cellfun(@isempty,abc));
or
abc(cellfun(@isempty,abc)) = [];
Más respuestas (0)
Ver también
Categorías
Más información sobre NaNs 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!