How to count the 1X1 cells in a cell array?

Hello,
I want to count the number of cells of size 1X1 in the attached matrix, So how can I do that?
Regards,

 Accepted Answer

a=cellfun(@numel,Out)
sum(a==1)

More Answers (0)

Categories

Asked:

on 20 Apr 2020

Edited:

on 20 Apr 2020

Community Treasure Hunt

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

Start Hunting!