Borrar filtros
Borrar filtros

manipulation of a cell array-

3 visualizaciones (últimos 30 días)
alex
alex el 15 de Oct. de 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}) ?

Respuesta aceptada

Matt Fig
Matt Fig el 15 de Oct. de 2012
Editada: Matt Fig el 15 de Oct. de 2012
Cell_array = {1,[],magic(2);'stirng',[],[]}
cellfun('isempty',Cell_array)

Más respuestas (0)

Categorías

Más información sobre Cell Arrays 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!

Translated by