|
From: | hassen62 |
Subject: | ordering variables in specific order |
Date: | Fri, 21 Mar 2008 22:04:16 +0100 (CET) |
Dear friends,
I would like to order the elements of a vector (ascending order) in absolute values but I must retain the signs, i.e if we have the vector(-2,1,-4,5,6) we must find the following order: 1,-2,-4,5,6.
Can you please help me.
Thank you in advance.
[Prev in Thread] | Current Thread | [Next in Thread] |