I have some sets of data saved in a cell array, where each element in the cell array is another cell array containing 3 elements, i.e.
data = 1x6 cell array {1 x 3 cell} {1 x 3 cell} {1 x 3 cell} {1 x 3 cell} {1 x 3 cell} {1 x 3 cell}
The 1×3 cells all contain 2 single numbers and one mxn data set. I want to sort the data by the second number in the data set –
dataovenparamcell{j}{2}
such that cells with the same value of the second number are grouped together. How could I do this?
Best Answer