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

7 lines
243 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
plot2d(salaire_high,y_reg,5)