MATLAB: How to fill cell arrays with zeros to make them equal

cell

M=
{10x107}
{10x108}
{10x103}
{10x105}
how to fill each cell with zeros to reach the size of the max length cell
Gives
M=
{10x108}
{10x108}
{10x108}
{10x108}

Best Answer

for i=1:numel(M)
M{i}(end,108)=0;
end