MATLAB: How to arrange a sample

arrangeorder

Hi!
I'm a begginer so this question might look silly, but I'll go ahead:
I have a sample of possible outcomes J = random('norm',x,x, 100,1)and need to arrange them from the higher to the lower; how can I do it?
Many thanks,
Ferran

Best Answer

>> sortedJ = sort(J,'descend')
You might also want to learn the "lookfor" command, which is handy for finding MATLAB function by keyword search.
Related Question