Solution Manual For Digital Signal Processing Using MATLAB A Problem Solving Companion 4th Edition by Ingle Proakis ISBN 1305635124 9781305635128
Solution Manual For Digital Signal Processing Using MATLAB A Problem Solving Companion 4th Edition by Ingle Proakis ISBN 1305635124 9781305635128
Chapter 2
P2.1 Generate the following sequences using the basic MATLAB signal functions and the basic MATLAB signal
operations discussed in this chapter. Plot signal samples using the stem function.
1. x1.n/ D 3 .n C 2/ C 2 .n/ .n 3/ C 5 .n 7/, 5 n 15
ï1
ï2
ï5ï4ï3ï2ï1 0 1 2 3 4 5 6 7 8 9 101112131415
n
Figure 2.1: Problem P2.1.1 sequence plot
1
© 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
2 SOLUTIONS
SOLUTIONS MANUAL FOR DSP USING MATLAB (4TH EDITION) MANUAL FOR DSP USING MATLAB (4TH EDITION) 2
5
X
k j
2. x2.n/ D e .n 2k/, 10n 10.
kD5
% P0201b: x2(n) = sum_{k = -5}^{5} e^{-|k|}*delta(n - 2k), -10 <= n <= 10 clc; close all;
n2 = [-10:10]; x2 = zeros(1,length(n2));
for k = -5:5
x2 = x2 + exp(-abs(k))*impseq(2*k ,-10,10);
end
Hf_1 = figure; set(Hf_1,’NumberTitle’,’off’,’Name’,’P0201b’); Hs =
stem(n2,x2,’filled’); set(Hs,’markersize’,2); axis([min(n2)-
1,max(n2)+1,min(x2)-1,max(x2)+1]); xlabel(’n’,’FontSize’,LFS);
ylabel(’x_2(n)’,’FontSize’,LFS); title(’Sequence x_2(n)’,’FontSize’,TFS);
set(gca,’XTickMode’,’manual’,’XTick’,n2); print -deps2
../EPSFILES/P0201b;
SEQUENCE X2(N)
2
1.5
0.5
−0.5
−1
−10 −9 −8 −7 −6 −5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 9 10
N
©
© 2017
2017 Cengage
Cengage Learning®.
Learning®. May
May not
not be
be scanned,
scanned, copied
copied or
or duplicated,
duplicated, or
or posted
posted to
to a
a publicly
publicly accessible
accessible website,
website, in
in whole
whole or
or in
in part.
part.
3 SOLUTIONS
SOLUTIONS MANUAL FOR DSP USING MATLAB (4TH EDITION) MANUAL FOR DSP USING MATLAB (4TH EDITION) 3
% P0201c: x3(n) = 10u(n) - 5u(n - 5) + 10u(n - 10) + 5u(n - 15). clc; close
all;
SEQUENCE X3(N)
12
10
−2
−4
−6 0 1 2 3 4 5 6 7 8 9 1011121314151617181920
©
© 2017
2017 Cengage
Cengage Learning®.
Learning®. May
May not
not be
be scanned,
scanned, copied
copied or
or duplicated,
duplicated, or
or posted
posted to
to a
a publicly
publicly accessible
accessible website,
website, in
in whole
whole or
or in
in part.
part.
4 SOLUTIONS
SOLUTIONS MANUAL FOR DSP USING MATLAB (4TH EDITION) MANUAL FOR DSP USING MATLAB (4TH EDITION) 4
0:1n
4. x4.n/ D e u.n C 20/ u.n 10/ .
n4 = [-25:15];
x4 = exp(0.1*n4).*(stepseq(-20,-25,15) - stepseq(10,-25,15));
SEQUENCE X4(N)
2.5
1.5
0.5
−0.5
−1
−25 −20 −15 −10 −5 0 5 10 15
N
©
© 2017
2017 Cengage
Cengage Learning®.
Learning®. May
May not
not be
be scanned,
scanned, copied
copied or
or duplicated,
duplicated, or
or posted
posted to
to a
a publicly
publicly accessible
accessible website,
website, in
in whole
whole or
or in
in part.
part.
Another document from Scribd.com that is
random and unrelated content: