Ajout de la question 3 exercice 2

This commit is contained in:
Tom MOGULJAK 2023-05-11 16:25:15 +02:00
parent 06a248026a
commit 9274f1f933

16
Exo2/Question3.sce Normal file
View File

@ -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);