If I have matrix a=[1 2; 3 4; 5 6; 7 8] (dimension 4×2) and i want to calculate
A= [1 2 0 0 0 0 0 0;
3 4 1 2 0 0 0 0;
5 6 3 4 1 2 0 0;
7 8 5 6 3 4 1 2]
(dimension 4×8),
how can i do?
Thanks.
matrix arrayshifttriangular
Best Answer