Beruflich Dokumente
Kultur Dokumente
%% gsignal plot
figure(2);
subplot(2,3,1);
Gsignalplot(B,XY,y1X1');
subplot(2,3,3);
Gsignalplot(B,XY,y1X1');
subplot(2,3,4);
Gsignalplot(B,XY,y1X1');
subplot(2,3,5);
Gsignalplot(B,XY,y1X1');
%% Filtering (high variation signal is the eigen vector corresponding to
highest eigen value)
figure(3);
subplot(2,1,1);
Gsignalplot(B,XY,U(:,length(U))');
%% zero variation signal is the eigen vector corresponding to zero eigen
value
subplot(2,1,2);
Gsignalplot(B,XY,U(:,1)');
%% low pass filter that allow first three variations
LPF1=[1,1,1];
LPF=[LPF1 zeros(1,length(U)-length(LPF1))]';
lpf=U*LPF;
figure(4);
subplot(2,2,1);
Gsignalplot(B,XY,lpf');
YLX1=X1.*LPF;
ylx1=U*YLX1;
subplot(2,2,2);
Gsignalplot(B,XY,ylx1');
YLX2=X2.*LPF;
ylx2=U*YLX2;
subplot(2,2,3);
Gsignalplot(B,XY,ylx2');
%% High pass filter allowing the last 5 variation signals
HPF1=[1,1,1,1,1];
HPF=[zeros(1,length(B)-length(HPF1)) HPF1]';
hpf=U*HPF;
figure(5);
subplot(2,2,1);
Gsignalplot(B,XY,hpf');
YHX1=X1.*HPF;
yhx1=U*YHX1;
subplot(2,2,2);
Gsignalplot(B,XY,yhx1');
YHX2=X2.*HPF;
yhx2=U*YHX2;
subplot(2,2,3);
Gsignalplot(B,XY,yhx2');
%% bandpass filter for the middile variated
BPF=[zeros(1,length(U)/2-1) 1,1 zeros(1,length(U)/2-1)]';
bpf=U*BPF;
figure(6);
subplot(2,2,1);
Gsignalplot(B,XY,bpf');
YBX1=X1.*BPF;
ybx1=U*YBX1;
subplot(2,2,2);
Gsignalplot(B,XY,ybx1');
YBX2=X2.*BPF;
ybx2=U*YBX2;
subplot(2,2,3);
Gsignalplot(B,XY,ybx2');
plot(X(:,1),X(:,2),'*');
for i=2:length(A)
for j=1:i-1
if A(i,j)>0
line([X(i,1),X(j,1)],[X(i,2),X(j,2)]); %plotting the lines
between the coordinates
%text((X(i,1)+X(j,1))/2,(X(i,2)+X(j,2))/2,num2str(A(i,j)));
end
end
end
end