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
| % PARCOURS DU SIGNAL DE DONNEES
for i = 1:length(sig_donnee)
% on recupere la valeur courante du signal
donneec = sig_donnee(i);
%on cherche les bornes inf et sup
bornsup = 0;
borninf = 0;
X = find(donneec < 3);
Y = diff(X);
for n = 1:numel(Y)
if(Y(n) > 1)
bornsup = X(n+1);
borninf = X(n);
z=[];
z=[borninf bornsup];
end
end
%histo1D pour chaque plage entre les arrets
for k=1:size(z,1)
A=[];
A=[A,histo1D(typehisto, sig_donnee(borninf:bornsup), sig_dist(borninf:bornsup), sig_tps(borninf:bornsup), classes)];
end
end |
Partager