MATLAB: How to Update matrix values

I have a matrix[2 2:2 2]I want to update these four values one by one ie[3 3:3 3],[4 4:4 4],[5 5:5 5] like thgis I want to update ,,,how can i achieve this with script?

Best Answer

b = {};
a=[1 2;3 4]
for i=1:1:100;
a=a+1;
b = [b a];
end