Axb=[1 1 1 2 1 5 7;1 2 2 1 1 3 6;1 3 3 0 1 6 6;1 2 2 2 2 3 -8;1 1 1 1 1 6 8;3 5 9 3 4 3 1;2 2 5 1 8 9 5];
z = Axb(1,:);
z(2,2:end) = Axb(2,2:end);
z(3,3:end) = Axb(4,3:end);
z(4,4:end) = Axb(5,4:end);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!