Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: MATA: sort descending


From   "Roberta Pastorino" <[email protected]>
To   [email protected]
Subject   st: MATA: sort descending
Date   Sat, 10 Jun 2006 13:41:59 +0200 (DFT)

I have a matrix like this:

a=
3 6 8 2
2 3 5 1

I woluld like :
b=
8 6 3 2
5 3 2 1

I have to sort the first row of a matrix in a descending order in MATA.
Is possible?

Thanks
R
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index