SAE_2.04/EXO5/scripts/q1-homme.sce

7 lines
236 B
Scilab
Raw Normal View History

2024-06-15 20:03:43 +02:00
id_male = find(csvString(:,3) == "Male" )
salaire_male = csvDouble(id_male,7)
exp_male = csvDouble(id_male,6)
plot2d(salaire_male,exp_male,-1)
[a,b] = reglin(salaire_male',exp_male')
y_reg = a*salaire_male+b
plot2d(salaire_male,y_reg,5)