manipulation of a cell array-

1 visualizzazione (ultimi 30 giorni)
alex
alex il 15 Ott 2012
I have a cell array where some cells are empty, some are with numbers and some are with strings and chars.
I want to find out which ones are empty- is there a better way then a double loop with
isempty(cell_array{i,j}) ?

Risposta accettata

Matt Fig
Matt Fig il 15 Ott 2012
Modificato: Matt Fig il 15 Ott 2012
Cell_array = {1,[],magic(2);'stirng',[],[]}
cellfun('isempty',Cell_array)

Più risposte (0)

Categorie

Scopri di più su Data Types 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!

Translated by