manipulation of a cell array-

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}) ?

 Akzeptierte Antwort

Matt Fig
Matt Fig am 15 Okt. 2012
Bearbeitet: Matt Fig am 15 Okt. 2012

0 Stimmen

Cell_array = {1,[],magic(2);'stirng',[],[]}
cellfun('isempty',Cell_array)

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 15 Okt. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by