Hi, I am looking for a simple and possibly clean way to sort the cells of a cell array by the length of the vector inside every cell. For instance I have this cell array:
c = [1x3 double] [1x4 double] [1x2 double] [1x3 double]
and i want to obtain this:
c = [1x2 double] [1x3 double] [1x3 double] [1x4 double]
As I said I was looking for something clean rather than fast, and I need working it just for array cells and not for matrix cells in general, thank you very much in advance.
Best Answer