blob: f2738c7e76533e1aa587ed233f1ed6de5de36842 (
plain)
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
|
clf();
X=[0 0.5 1 0.5];
XF=[X 0];
WF=[X X X 0];
f=-0.5:0.25:0.5;
f1=-0.75:0.125:0.75;
HF=[0 1 1 1 0];
f2=[-0.126,-0.125:0.125:0.125,0.126];
for i=1:5
YF(i)=WF(i)*HF(i);
end
f3=[-0.126 -0.125 0 0.125 0.126];
a=gca();
a.y_location="origin";
subplot(211);
plot2d(f,XF);
xtitle('spectrum of XF');
a.y_location="origin";
subplot(212);
plot2d(f1,WF);
xtitle('spectrum of WF');
xset('window',1);
b=gca();
b.y_location="origin";
subplot(211);
plot2d(f2,HF);
xtitle('spectrum of HF');
b.y_location="origin";
subplot(212);
plot2d(f3,YF);
xtitle('spectrum of YF');
|