From de9ae52e9e587bd62fec7e2f8ada92349ec0c5b0 Mon Sep 17 00:00:00 2001 From: Tom Moguljak Date: Sun, 14 May 2023 20:44:18 +0200 Subject: [PATCH] Modification de la question 5 --- Exo2/Question5.sce | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Exo2/Question5.sce b/Exo2/Question5.sce index c727d54..37a84e5 100644 --- a/Exo2/Question5.sce +++ b/Exo2/Question5.sce @@ -1,6 +1,6 @@ //On classe les valeurs de façon croissante -[espreranceHomme,indice] = gsort(data(u,11)); +[espreranceHomme,indice] = gsort(data(u,11), 'g', 'i'); //Les pays correspondant à l'espérance la plus grande et la plus petite -paysMaxHomme = pays(indice(1),1); -paysMinHomme = pays(indice(length(indice)),1); +paysMaxHomme = pays(indice(length(indice)),1); +paysMinHomme = pays(indice(1),1);