MATLAB: How to find the minimum length of a cell array

cell

M= {10×107} {10×108} {10×103} {10×105}
how do i find the minimum length among the cells? eg. 103

Best Answer

min( cellfun(@(c) size(c,2), M) )