SLIDE 2 Discrete-Time Unit-Impulse Sampling Property Recall from our earlier discussion of signal fundamentals that any signal x[n] can be written as x[n] =
∞
x[k]δ[n − k] =
∞
akxk[n] Side note: since δ[n] is an even signal, δ[n] = δ[−n], we can also write this as x[n] =
∞
x[k]δ[k − n] Though, this is not the conventional form.
Portland State University ECE 222 Convolution Sum
7
Example 1: MATLAB Code
a = 0.6; n = -2:10; subplot(3,2,1); x1 = (n==0); % Unit impulse centered at n=0 h = stem(n,x1,’b’); set(h(1),’Marker’,’.’); title(’Input’); ylabel(’x_1[n] = \delta[n]’); box off; xlim([min(n) max(n)]); subplot(3,2,2); y1 = (a.^n).*(n>=0); % Unit impulse response h[n] h = stem(n,y1,’r’); set(h(1),’Marker’,’.’); title(’Output’); ylabel(’y_1[n] = h[n]’); box off; xlim([min(n) max(n)]); subplot(3,2,3); x2 = (n==2); % Unit impulse centered at n=2 h = stem(n,x2,’b’); set(h(1),’Marker’,’.’); ylabel(’x_2[n] = \delta[n-2]’); box off; xlim([min(n) max(n)]); subplot(3,2,4); y2 = (a.^(n-2)).*(n>=2); % Unit impulse response h[n] h = stem(n,y2,’r’); set(h(1),’Marker’,’.’); ylabel(’y_2[n] = h[n-2]’); box off; xlim([min(n) max(n)]);
Portland State University ECE 222 Convolution Sum
5
Example 2: Unit-Impulse Sampling Property
- Any bounded discrete-time signal can be written as a sum of
discrete-time impulses
- For example, consider the following signal
x[n] = ⎧ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎩ 1 n = 0 −1 n = 2 2 n = 5
- therwise
- In terms of unit-impulses, this signal can also be expressed as
x[n] = 1 · δ[n] − 1 · δ[n − 2] + 2 · δ[n − 5]
Portland State University ECE 222 Convolution Sum
8
Example 1: MATLAB Code Continued
subplot(3,2,5); x3 = (n==5); % Unit impulse centered at 5 h = stem(n,x3,’b’); set(h(1),’Marker’,’.’); xlabel(’Time (n)’); ylabel(’x_3[n] = \delta[n-5]’); box off; xlim([min(n) max(n)]); subplot(3,2,6); y3 = (a.^(n-5)).*(n>=5); % Unit impulse response h[n] h = stem(n,y3,’r’); set(h(1),’Marker’,’.’); xlabel(’Time (n)’); ylabel(’y_3[n] = h[n-5]’); box off; xlim([min(n) max(n)]);
Portland State University ECE 222 Convolution Sum
6