SAE_2.04/EXO3/scripts/q2.sce

26 lines
723 B
Scilab
Raw Normal View History

2024-06-14 20:33:54 +02:00
indice_high = find(csvDouble(:,4) == 0 )
salaire_high = csvDouble(indice_high,7)
moy_h = mean(salaire_high)
2024-06-09 17:36:56 +02:00
2024-06-14 20:33:54 +02:00
indice_b = find(csvDouble(:,4) == 1 )
salaire_b = csvDouble(indice_b,7)
moy_b = mean(salaire_b)
indice_m = find(csvDouble(:,4) == 2 )
salaire_m = csvDouble(indice_m,7)
moy_m = mean(salaire_m)
indice_p = find(csvDouble(:,4) == 3)
salaire_p = csvDouble(indice_p,7)
moy_p = mean(salaire_p)
matrice = [moy_h,moy_b,moy_m,moy_p]
bar([0,1,2,3],matrice)
2024-06-09 17:36:56 +02:00
xlabel("Niveau d''études");
ylabel("Salaire moyen");
title("Salaire moyen par niveau d''études");