I have a matrix like this.
M=[1 2 3; 4 5 6].
I want to expanding it into
M'=[1 1 2 2 3 3; 1 1 2 2 3 3; 1 1 2 2 3 3; 4 4 5 5 6 6; 4 4 5 5 6 6; 4 4 5 5 6 6].
I try to do this.but stil i could not get correct result?
matrix operations
M=[1 2 3; 4 5 6].
M'=[1 1 2 2 3 3; 1 1 2 2 3 3; 1 1 2 2 3 3; 4 4 5 5 6 6; 4 4 5 5 6 6; 4 4 5 5 6 6].
Best Answer