replace nan with blank
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Andrei Bobrov
le 14 Mar 2013
Modifié(e) : Andrei Bobrov
le 14 Mar 2013
out = abc(~cellfun(@isempty,abc));
or
abc(cellfun(@isempty,abc)) = [];
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur NaNs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!