I have an array A having x
and y
values.. e,g.
A =
5 1
7 2
3 1
5 3
4 4
7 3
2 5
9 5
7 6
I need to take three values at one time and sort them in ascending order according to the x
values (First 3 x y
values Then next 3 x y
values and so on. )
I want it in this order -
3 1
5 1
7 2
4 4
5 3
7 3
2 5
7 6
9 5
Can somebody suggest me a MATLAB code to get the required result?
Thank You