SAE_2.04/EXO1/scripts/q6.sce

24 lines
940 B
Scilab
Raw Permalink Normal View History

2024-06-16 18:16:00 +02:00
indice_6_female = find(csvString(:,3) == "Female" );
salaire_6_female = csvDouble(indice_6_female,7);
2024-06-12 20:23:52 +02:00
mean(salaire_6_female)
2024-06-16 18:16:00 +02:00
age_6_female = csvDouble(indice_6_female,2);
2024-06-12 20:23:52 +02:00
mean(age_6_female)
2024-06-16 18:16:00 +02:00
exp_6_female = csvDouble(indice_6_female,6);
2024-06-12 20:23:52 +02:00
mean(exp_6_female)
2024-06-11 14:34:27 +02:00
2024-06-16 18:16:00 +02:00
indice_6_male = find(csvString(:,3) == "Male" );
salaire_6_male = csvDouble(indice_6_male,7);
2024-06-12 20:23:52 +02:00
mean(salaire_6_male)
2024-06-16 18:16:00 +02:00
age_6_male = csvDouble(indice_6_male,2);
2024-06-12 20:23:52 +02:00
mean(age_6_male)
2024-06-16 18:16:00 +02:00
exp_6_male = csvDouble(indice_6_male,6);
2024-06-12 20:23:52 +02:00
mean(exp_6_male)
2024-06-11 14:34:27 +02:00
2024-06-16 18:16:00 +02:00
indice_6_other = find(csvString(:,3) == "Other" );
salaire_6_other = csvDouble(indice_6_other,7);
2024-06-12 20:23:52 +02:00
mean(salaire_6_other)
2024-06-16 18:16:00 +02:00
age_6_other = csvDouble(indice_6_other,2);
2024-06-12 20:23:52 +02:00
mean(age_6_other)
2024-06-16 18:16:00 +02:00
exp_6_other = csvDouble(indice_6_other,6);
2024-06-12 20:23:52 +02:00
mean(exp_6_other)