how to count the number of empty cells in an array?

35 次查看(过去 30 天)
Hello,
How to count the empty cells in the attached array?
Regards,

采纳的回答

Muthu
Muthu 2020-4-20
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);

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by