On 2012-11-10 16:39, Samuel Gougeon wrote:
Le 10/11/2012 15:06, Paul Carrico a écrit :
D= [
10 3 11 10 13;
49 6 -1 -1 0;
178 39 9 -451 3;
10110 -12 1 -9 45 ;
-13514 15 78 -99 3]
/// each line is sorted from the 1rst column (in increasing order)/
D_expeted= [
-13514
That's fine ... thanks Stefan
Paul
-Message d'origine-
De : users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org]
De la part de Stefan Du Rietz
Envoyé : samedi 10 novembre 2012 15:40
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] so
Le 10/11/2012 15:06, Paul Carrico a écrit :
D= [
10 3 11 10 13;
49 6 -1 -1 0;
178 39 9 -451 3;
10110 -12 1 -9 45 ;
-13514 15 78 -99 3]
/// each line is sorted from the 1rst column (in increasing order)/
D_expeted= [
-13514 15 78 -99 3;
10 3 11 10 13;
49 6 -1 -1 0;
10110 -12 1 -9 45;
Sorry, like this:
D_expected=lex_sort(D,1);
Stefan
On 2012-11-10 15:06, Paul Carrico wrote:
Dear all,
As it can be done under excel for example, I would like to sort the
first column in increasing order, the each line the same time (see
above example).
Does the gsort func
Try lex_sort().
Stefan
On 2012-11-10 15:06, Paul Carrico wrote:
Dear all,
As it can be done under excel for example, I would like to sort the
first column in increasing order, the each line the same time (see
above example).
Does the gsort function allow such rearranging
Dear all,
As it can be done under excel for example, I would like to sort the first
column in increasing order, the each line the same time (see above example).
Does the gsort function allow such rearranging (I've made some trials, but
.) ? or do I've to code it ?
Thanks
Paul
##
Dear all,
As it can be done under excel for example, I would like to sort the first
column in increasing order, the each line the same time (see above example).
Does the gsort function allow such rearranging ? or do I've to code it ?
Thanks
Paul
#