suppose i have a matrix like this,
a = [ 1 2 3 4;
5 6 7 8;
9 10 11 12]
i want it like
b = [1 2;
3 4;
5 6;
7 8;
9 10;
11 12 ]
any idea in matlab ?
thanks in advance
What is your format of the matrices, before and after?
Does it start out as a 3x4 and go to a 6x2 every time, or do the dimensions vary?
Are you simply trying to take each row, split it in half, and add the right-hand half to a new row below the original?