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
| N=100;k=1:N;
v1(k)=rand(1,100);
v2(k)=rand(1,100);
v3(k)=rand(1,100);
x1=0.4*v1(k)+sin(k/N)
x2=v2(k)-2*cos(k/4);
x3=0.2*v3(k)-1;
x4=x1+x2;
x5=x2+x3;
x6=2*x1+x3;
x7=x4+x5;
x=[x1' x2' x3' x4' x5' x6' x7'];
x1(:,8:15)=x1(:,8:15)+3;
x3(:,34:41)=x3(:,34:41)+3;
x5(:,58:65)=x5(:,58:65)+3
subplot(711);plot(x1);axis([0 100 -4 4]);
subplot(712);plot(x2);axis([0 100 -4 4]);
subplot(713);plot(x3);axis([0 100 -4 4]);
subplot(714);plot(x4);axis([0 100 -4 4]);
subplot(715);plot(x5);axis([0 100 -4 4]);
subplot(716);plot(x6);axis([0 100 -4 4]);
subplot(717);plot(x7);axis([0 100 -4 4]);
[COEFF,SCORE,latent] = princomp(x) |
Partager