Ngày tải lên :
12/09/2012, 16:20
... u1=n>=0;
u2=(n -2) >=0;
x=u1-u2;
h=(0.7).^n;
h1=h.*u1;
k1=-n0:n0;
y=conv(x,h1);
length_output=length(x)+length(h1)-1;
k2=linspace( -2* n0 ,2* n0,length_output);
subplot (2, 1 ,2) ;stem(k1,x);xlabel('n'),ylabel('x(n)');grid;
subplot (2, 1 ,2) ;stem(k1,h1);xlabel('n'),ylabel('h(n)');grid;
... k2=linspace( -2* n0 ,2* n0,length_output);
subplot (2, 1 ,2) ;stem(k1,x);xlabel('n'),ylabel('x(n)');grid;
subplot (2, 1 ,2) ;stem(k1,h1);xlabel('n'),ylabel('h(n)');grid;
y=conv(x,h);
length_output=length(x)+length(h)-1;
k2=linspace( -2* n0 ,2* n0,length_output);
subplot (2, 1 ,2) ;stem(k1,x);xlabel('n'),ylabel('x(n)');grid;
subplot (2, 1 ,2) ;stem(k1,h);xlabel('n'),ylabel('h(n)');grid;
subplot (2, 1 ,2) ;stem(k2,y);xlabel('n'),ylabel('y(n)');grid;
Lập ... 0.7 0.49 0.343 0 .24 01 0.16807 0.1176 0.0 82 0.0576 0.04 0. 028 ];
subplot (2, 1 ,2) ;stem(0:10,h);xlabel('n'),ylabel('h(n)');
x=[0 0 0 1 0 0 0 0 0 0 0];
subplot (2, 1 ,2) ;stem(0:10,x);xlabel('n'),ylabel('x(n)');
y=conv(x,h);
subplot (2, 1 ,2) ;stem(y);xlabel('n'),ylabel('y(n)');
e.
x(n)=u(n)-u(n -2)
subplot (2, 1 ,2) ;stem(k2,y);xlabel('n'),ylabel('y(n)');grid;
...