Modifs
This commit is contained in:
7
EXO5/scripts/q1-femme.sce
Normal file
7
EXO5/scripts/q1-femme.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
id_female = find(csvString(:,3) == "Female" )
|
||||
salaire_female = csvDouble(id_female,7)
|
||||
exp_female = csvDouble(id_female,6)
|
||||
plot2d(salaire_female,exp_female,-1)
|
||||
[a,b] = reglin(salaire_female',exp_female')
|
||||
y_reg = a*salaire_female+b
|
||||
plot2d(salaire_female,y_reg,5)
|
||||
7
EXO5/scripts/q1-homme.sce
Normal file
7
EXO5/scripts/q1-homme.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
7
EXO5/scripts/q2-1.sce
Normal file
7
EXO5/scripts/q2-1.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
7
EXO5/scripts/q2-2.sce
Normal file
7
EXO5/scripts/q2-2.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
indice_b = find(csvDouble(:,4) == 1 )
|
||||
salaire_b = csvDouble(indice_b,7)
|
||||
exp_b = csvDouble(indice_b,6)
|
||||
plot2d(salaire_b,exp_b,-1)
|
||||
[a,b] = reglin(salaire_b',exp_b')
|
||||
y_reg = a*salaire_b+b
|
||||
plot2d(salaire_b,y_reg,5)
|
||||
7
EXO5/scripts/q2-3.sce
Normal file
7
EXO5/scripts/q2-3.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
indice_m = find(csvDouble(:,4) == 2 )
|
||||
salaire_m = csvDouble(indice_m,7)
|
||||
exp_m = csvDouble(indice_m,6)
|
||||
plot2d(salaire_m,exp_m,-1)
|
||||
[a,b] = reglin(salaire_m',exp_m')
|
||||
y_reg = a*salaire_m+b
|
||||
plot2d(salaire_m,y_reg,5)
|
||||
7
EXO5/scripts/q2-4.sce
Normal file
7
EXO5/scripts/q2-4.sce
Normal file
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user