Hi i have many matrices in same size , i want to add all of them together in one matrix with replace the last quarter of each one to binning of next one until complete the matrix and the rest will be zeros . for example
a =zeros(5,5)A=[1 2 ;3 4];B=[5 6;7 8];C=[9 10;11 12];D=[13 14;15 16];
the answer
a= 1 2 0 0 0 3 5 6 0 0 0 7 9 10 0 0 0 11 13 14 0 0 0 15 16
thank you very much for helping
Best Answer