1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| //FONCTION TRACE LECTURE
//Données d'entrée
Pas_metre = 40
distance_mesurée = 307
//Déclaration
Echantillonage = 0.0010158
Pas = Pas_metre/Echantillonage
nombre_troncon = distance_mesurée/Pas_metre
nombre_troncon_arrondi = ceil(nombre_troncon)
x = nombre_troncon_arrondi
//Importation des données brut
M = csvRead("C:\Users\Stagiaire06\Desktop\test\test1.csv")
t2 = M(:,2) //matrice 1d capteur
//t1 = M(:,1) //matrice 1d capteur
//t3 = M(:,3) //matrice 1d capteur
//t = mean(M(:,1),M(:,2),M(:,3))
u = M(:,4) //matrice 1d déplacement
// Découpage et tracé en tronçon de ""Pas"" mètres (n*x)
for n = 1:x
début = (n-1)*Pas+1
if n < x then
fin = n*Pas
else
fin = size(M, "r")
end
i = t2(début:fin)
j = u(début:fin)
//Matrice de sortie
///S(gdfh)
scf
plot2d(i,j)
xtitle("Evolution de la rugosité en fonction du déplacement","rugosité","déplacement") |
Partager