From 9274f1f9335cafe6c1f6ed66c84d15b175f70f32 Mon Sep 17 00:00:00 2001 From: Tom Moguljak Date: Thu, 11 May 2023 16:25:15 +0200 Subject: [PATCH] Ajout de la question 3 exercice 2 --- Exo2/Question3.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Exo2/Question3.sce diff --git a/Exo2/Question3.sce b/Exo2/Question3.sce new file mode 100644 index 0000000..4bdd3f7 --- /dev/null +++ b/Exo2/Question3.sce @@ -0,0 +1,16 @@ +pays = csvRead("data/data.csv", ",", ".", "string"); + +//Homme +minHomme = min(data(u, 11)); +maxHomme = max(data(u, 11)); + +//Femme +minFemme = min(data(v, 12)); +maxFemme = max(data(v, 12)); + +//Pays correspondant +paysMinHomme = pays(find(data(:, 11) == minHomme), 1); +paysMaxHomme = pays(find(data(:, 11) == maxHomme), 1); + +paysMinFemme = pays(find(data(:, 12) == minFemme), 1); +paysMaxFemme = pays(find(data(:, 12) == maxFemme), 1);