MATLAB: How to count the number of empty cells in an array

cellcell arraycell arraysempty

Hello,
How to count the empty cells in the attached array?
Regards,

Best Answer

Hello Sarah,
You can count the empty cells using the following commands
N_nonempty = find(~cellfun(@isempty,Out));
count_empty = length(Out)-length(N_nonempty);