SAE_S2.04/Exo2/Question3.sce

17 lines
430 B
Scilab
Raw Permalink Normal View History

2023-05-11 16:25:15 +02:00
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);