How to assign a rank number to an array
<p>I have an array of numbers, for example, myarray = (45,3,56,7,21). What I need to be able to do is rank the values into another array so for the above I would end up with myarray2 = (4,1,5,2,3).</p>

<p>Many thanks,</p>

<p>Adam</p>
