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

7 lines
209 B
Scilab
Raw Normal View History

2024-06-15 20:03:43 +02:00
indice_p = find(csvDouble(:,4) == 3)
salaire_p = csvDouble(indice_p,7)
exp_p = csvDouble(indice_p,6)
plot2d(salaire_p,exp_p,-1)
[a,b] = reglin(salaire_p',exp_p')
y_reg = a*salaire_p+b
plot2d(salaire_p,y_reg,5)