replace nan with blank
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Andrei Bobrov
il 14 Mar 2013
Modificato: Andrei Bobrov
il 14 Mar 2013
out = abc(~cellfun(@isempty,abc));
or
abc(cellfun(@isempty,abc)) = [];
Più risposte (0)
Vedere anche
Categorie
Scopri di più su NaNs in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!