Sort values in a cell array
1 view (last 30 days)
Hi guys, It's amazing how much some people know.
Well, this is my case:
I have a vector. Suppose this:
To this vector correspond another vector. Some values may be duplicates but it is not known how many.
So, I want to sort them and set the initial values in a cell array. The result would be this:
I wish I didn't have to use loop.
Thank you all for your help, especially helping me with this :)