Ajout de la question 3 exercice 2
This commit is contained in:
parent
06a248026a
commit
9274f1f933
16
Exo2/Question3.sce
Normal file
16
Exo2/Question3.sce
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user