Professional Documents
Culture Documents
Báo cáo tín hiệu thầy Mỹ - Chuẩn
Báo cáo tín hiệu thầy Mỹ - Chuẩn
subplot(3,1,1);
stem(n,xn);
xlabel('n');
ylabel('x[n]');
subplot(3,1,2);
stem(n,vn);
xlabel('n');
ylabel('v[n]');
subplot(3,1,3);
p=-10:30;
stem(p,y);
xlabel('n');
ylabel('y[n]');
b, x[n] = [1 4 8 2]; v[n] = [0 1 2 3 4] (the sequences both start at n=0)
x=[1 4 8 2];
v=[0 1 2 3 4];
y=conv(x,v);
subplot(3,1,1);
m=0:3;
stem(m,x);
xlabel('n');
ylabel('x[n]');
subplot(3,1,2);
n=0:4;
stem(n,v);
xlabel('n');
ylabel('v[n]');
subplot(3,1,3);
p=0:7;
stem(p,y);
xlabel('n');
ylabel('y[n]');
c, x[n] = u[n], v[n] = 2¿ u[n]
n=-5:15;
u=[zeros(1,5) ones(1,16)];
xn=u;
v=2*((0.8).^n);
vn=v.*u;
y=conv(xn,vn);
subplot(3,1,1);
stem(n,xn);
xlabel('n');
ylabel('x[n]');
subplot(3,1,2);
stem(n,vn);
xlabel('n');
ylabel('v[n]');
subplot(3,1,3);
p=-10:30;
stem(p,y);
xlabel('n');
ylabel('y[n]');
d, x[n] = u[n-1], v[n] = 2¿ u[n]
n=-5:15;
xn=[zeros(1,6) ones(1,15)];
u=[zeros(1,5) ones(1,16)];
v=2*((0.5).^n);
vn=v.*u;
y=conv(xn,vn);
subplot(3,1,1);
stem(n,xn);
xlabel('n');
ylabel('x[n]');
subplot(3,1,2);
stem(n,vn);
xlabel('n');
ylabel('v[n]');
subplot(3,1,3);
p=-10:30;
stem(p,y);
xlabel('n');
ylabel('y[n]');