2. Verify the function files created in problem (1) by plotting the sequence generated by the following operations a._x(n)=25(n) — 25(n−1)+36(n−2)+36(n−3)-46(n-5), for-2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Solve 2 using matlab 

2. Verify the function files created in problem (1) by plotting the sequence generated
by the following operations
a. x(n)=28(n)-28(n−1)+36(n−2)+36(n-3) — 48(n−5), for-2<n<7
use impseq and sigadd functions
b. y(n)= x(4-n)x(-2-n), where x(n) is the sequence generated in 2.a.
use sigshift, sigfold and sigmult functions.
c. Verify that for y(n) = r(n+1)[u(n) −u(n−1)], y(n) =
use sigshift, stepseq and sigmult functions
Note that r(n) = nu(n)
(1, n=0
[0, elsewhere
d. Decompose the signal
x(n) = (0.97)¹4 cos 0.0009² + +7) sin(0.005, n+4),
for -50<n<50 in to its even and odd components and verify that the
energy of x(n) is equal to the sum of energy of its even and odd
components. Determine and plot (stem) the following functions:
i. x(n)
ii. even component
iii. odd component
iv. sum of even and odd components, f(n)
Transcribed Image Text:2. Verify the function files created in problem (1) by plotting the sequence generated by the following operations a. x(n)=28(n)-28(n−1)+36(n−2)+36(n-3) — 48(n−5), for-2<n<7 use impseq and sigadd functions b. y(n)= x(4-n)x(-2-n), where x(n) is the sequence generated in 2.a. use sigshift, sigfold and sigmult functions. c. Verify that for y(n) = r(n+1)[u(n) −u(n−1)], y(n) = use sigshift, stepseq and sigmult functions Note that r(n) = nu(n) (1, n=0 [0, elsewhere d. Decompose the signal x(n) = (0.97)¹4 cos 0.0009² + +7) sin(0.005, n+4), for -50<n<50 in to its even and odd components and verify that the energy of x(n) is equal to the sum of energy of its even and odd components. Determine and plot (stem) the following functions: i. x(n) ii. even component iii. odd component iv. sum of even and odd components, f(n)
1. Create function files that will:
a generate an impulse signal 8(n-no) over the interval n1 to n2
[x, n] = impseq (no, n1, n2)
(1, n = n₂
[0, n= n₁
b. generate sequence u(n-n) over the interval n1 to n2
[x,n] = stepseq (n0,n1, n2)
8(n-n₂)=
=
[1, nzn
10₁ n<n₂
u(n-n₁) =
c. generate sequence y(n) = x(no - m)
[y,n]
sigshift (x,m,n0)
d. generates sequence y(m) = x(-n)
[y,m] = sigfold (x,n)
e. generate sequence y(n) = x₁(n) + x₂(n)
[y,n] = sigadd (x1, n1, x2, n2)
f. generate sequence y(n) = x₁(n) x₂(n)
[y,n] = sigmult (x1,n1, x2,n2)
g. generate the even and odd components of x(n)
[xe,xo,n] =
evenodd (x,n)
_x, (n) = — [x(n) + x(−n)]
x₂ (n) = [x(n) − x(-n)]
Transcribed Image Text:1. Create function files that will: a generate an impulse signal 8(n-no) over the interval n1 to n2 [x, n] = impseq (no, n1, n2) (1, n = n₂ [0, n= n₁ b. generate sequence u(n-n) over the interval n1 to n2 [x,n] = stepseq (n0,n1, n2) 8(n-n₂)= = [1, nzn 10₁ n<n₂ u(n-n₁) = c. generate sequence y(n) = x(no - m) [y,n] sigshift (x,m,n0) d. generates sequence y(m) = x(-n) [y,m] = sigfold (x,n) e. generate sequence y(n) = x₁(n) + x₂(n) [y,n] = sigadd (x1, n1, x2, n2) f. generate sequence y(n) = x₁(n) x₂(n) [y,n] = sigmult (x1,n1, x2,n2) g. generate the even and odd components of x(n) [xe,xo,n] = evenodd (x,n) _x, (n) = — [x(n) + x(−n)] x₂ (n) = [x(n) − x(-n)]
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education