SAE_2.04/EXO5/scripts/q2-1.sce

10 lines
331 B
Scilab
Raw Normal View History

2024-06-15 20:03:43 +02:00
indice_high = find(csvDouble(:,4) == 0 )
salaire_high = csvDouble(indice_high,7)
exp_high = csvDouble(indice_high,6)
plot2d(salaire_high,exp_high,-1)
[a,b] = reglin(salaire_high',exp_high')
y_reg = a*salaire_high+b
2024-06-17 01:08:53 +02:00
plot2d(salaire_high,y_reg,5)
xlabel('Salaires');
ylabel('Expérience');
title('Nuage de points niveau d''étude 0');