In MATLAB, I have data which looks like this:
5 7 1
5 8 2
5 9 3
6 7 3
6 8 3
6 9 2
where each column is an array (e.g. x = [5; 5; 5; 6; 6; 6]
).
I want the data to be put in matrix form in the following manner:
7 8 9
5 1 2 3
6 3 3 2
Any suggestions?