100% found this document useful (54 votes)
1K views

Solution Manual For Digital Signal Processing Using MATLAB A Problem Solving Companion 4th Edition by Ingle Proakis ISBN 1305635124 9781305635128

Solutions Manual
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (54 votes)
1K views

Solution Manual For Digital Signal Processing Using MATLAB A Problem Solving Companion 4th Edition by Ingle Proakis ISBN 1305635124 9781305635128

Solutions Manual
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Solution Manual for Digital Signal Processing Using MATLAB A Problem Solving Companion 4th

Edition by Ingle Proakis ISBN 1305635124 9781305635128


Full link download:
Solution Manual:
https://testbankpack.com/p/solution-manual-for-digital-signal-processing-using-matlab-a-problem-solving-
companion-4th-edition-by-ingle-proakis-isbn-1305635124-9781305635128/

Chapter 2

Discrete-Time Signals and Systems

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

% P0201a: x1(n) = 3*delta(n + 2) + 2*delta(n) - delta(n - 3) +


% 5*delta(n - 7), -5 <= n <= 15.
clc; close all;
x1 = 3*impseq(-2,-5,15) + 2*impseq(0,-5,15) - impseq(3,-5,15) + 5*impseq(7,-5,15); Hf_1 =
figure; set(Hf_1,’NumberTitle’,’off’,’Name’,’P0201a’); n1 = [-5:15];
Hs = stem(n1,x1,’filled’); set(Hs,’markersize’,2); axis([min(n1)-
1,max(n1)+1,min(x1)-1,max(x1)+1]); xlabel(’n’,’FontSize’,LFS);
ylabel(’x_1(n)’,’FontSize’,LFS); title(’Sequence x_1(n)’,’FontSize’,TFS);
set(gca,’XTickMode’,’manual’,’XTick’,n1,’FontSize’,8); print -deps2
../EPSFILES/P0201a;

The plots of x1.n/ is shown in Figure 2.1.


Sequence x1(n)
6

ï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;

The plots of x2.n/ is shown in Figure 2.2.

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

Figure 2.2: Problem P2.1.2 sequence plot

©
© 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

3. x3.n/ D 10u.n/ 5u.n 5/ 10u.n 10/ C 5u.n 15/.

% P0201c: x3(n) = 10u(n) - 5u(n - 5) + 10u(n - 10) + 5u(n - 15). clc; close
all;

x3 = 10*stepseq(0,0,20) - 5*stepseq(5,0,20) - 10*stepseq(10,0,20) ...


+ 5*stepseq(15,0,20);
n3 = [0:20];
Hf_1 = figure; set(Hf_1,’NumberTitle’,’off’,’Name’,’P0201c’); Hs =
stem(n3,x3,’filled’); set(Hs,’markersize’,2); axis([min(n3)-
1,max(n3)+1,min(x3)-1,max(x3)+2]);
ytick = [-6:2:12];
xlabel(’n’,’FontSize’,LFS); ylabel(’x_3(n)’,’FontSize’,LFS);
title(’Sequence x_3(n)’,’FontSize’,TFS);
set(gca,’XTickMode’,’manual’,’XTick’,n3);
set(gca,’YTickMode’,’manual’,’YTick’,ytick);
print -deps2 ../EPSFILES/P0201c;
The plots of x3.n/ is shown in Figure 2.3.

SEQUENCE X3(N)
12

10

−2

−4

−6 0 1 2 3 4 5 6 7 8 9 1011121314151617181920

Figure 2.3: Problem P2.1.3 sequence plot

©
© 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/ .

% P0201d: x4(n) = e ^ {0.1n} [u(n + 20) - u(n - 10)]. clc; close


all;

n4 = [-25:15];
x4 = exp(0.1*n4).*(stepseq(-20,-25,15) - stepseq(10,-25,15));

Hf_1 = figure; set(Hf_1,’NumberTitle’,’off’,’Name’,’P0201d’); Hs =


stem(n4,x4,’filled’); set(Hs,’markersize’,2); axis([min(n4)-2,max(n4)+2,min(x4)-
1,max(x4)+1]); xlabel(’n’,’FontSize’,LFS); ylabel(’x_4(n)’,’FontSize’,LFS);
title(’Sequence x_4(n)’,’FontSize’,TFS); ntick = [n4(1):5:n4(end)];
set(gca,’XTickMode’,’manual’,’XTick’,ntick);

print -deps2 ../CHAP2_EPSFILES/P0201d; print -deps2 ../../Latex/P0201d;


The plots of x4.n/ is shown in Figure 2.4.

SEQUENCE X4(N)

2.5

1.5

0.5

−0.5

−1
−25 −20 −15 −10 −5 0 5 10 15
N

Figure 2.4: Problem P2.1.4 sequence plot

©
© 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:

You might also like