Après mon merge héroïque
[valse.git] / reports / bazar Emilie / script.m
CommitLineData
3f62d540 1%clear all
2load donneesSelec.mat
3%donnees=[ind100,res100];
4donnees = BB;
5Res=mean(donnees,2);
6for i=1:349
7 X2(:,i)=Res(48*(i-1)+1:48*i);
8end
9for i=1:348
10 signal(:,i)=[X2(:,i);X2(:,i+1)];
11end
12
13[p1,n1]=size(X2);
14for i=1:n1
15 for j=1:p1
16 XC(i,j)=X2(j,i)-mean(X2(:,i));
17 end
18
19 [C,L]=wavedec(XC(i,:)',4,'haar');
20 xProj(i,:)=C(1:12);
21end
22
23X=xProj(1:end-2,:);
24Y=xProj(2:end-1,:);
25for i=1:n1
26 Xrecon(i,:)=waverec([xProj(i,:),zeros(1,36)],L,'haar');
27end
28for i=1:348
29 signal3(:,i)=[Xrecon(i,:),Xrecon(i+1,:)];
30end