manipulation of a cell array-

2 次查看(过去 30 天)
alex
alex 2012-10-15
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}) ?

采纳的回答

Matt Fig
Matt Fig 2012-10-15
编辑:Matt Fig 2012-10-15
Cell_array = {1,[],magic(2);'stirng',[],[]}
cellfun('isempty',Cell_array)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by