How to arrange a sample

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

 채택된 답변

the cyclist
the cyclist 2011년 9월 11일

0 개 추천

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

추가 답변 (1개)

Ferran
Ferran 2011년 9월 11일

0 개 추천

Thanks a lot for your help!
Thanks for your extra information also. I believe that, as you suggested, the lookfor command will be very useful in these days of learning!

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 9월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by