A={[113],[112],[42],[29],[113],[69],[86],[0],[0]};B={[18],[14],[5],[39],[27],[11],[9],[0],[0]};C=cellfun(@(m,u) length(m)+length(u),A, B, 'uni',0);
as 2 last element in both A and B is 0
I want to have this result
C={[2],[2],[2],[2],[2],[2],[2],[0],[0]}
Best Answer