(a) Consider a frequency response H of the form akωk , H(ω) = ∑ ∑ N-1 k=0 M-1 k=0 bkωk where ak and bk are complex const

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(a) Consider a frequency response H of the form akωk , H(ω) = ∑ ∑ N-1 k=0 M-1 k=0 bkωk where ak and bk are complex const

Post by answerhappygod »

(a) Consider a frequency response H of the form
akωk
,
H(ω) =

∑ N-1 k=0
M-1 k=0
bkωk
where ak and bk are complex constants. Write a MATLAB function called freqw that evaluates a function of the above form at an arbitrary number of specified points. The function should take three input arguments:
1) a vector containing the ak coefficients; 2) a vector containing the bk coefficients; and
3) a vector containing the values of ω for which to evaluate H(ω). The function should generate two return values:
1) a vector of function values; and
2) a vector of points at which the function was evaluated. If the function is called with no output arguments (i.e., the nargout variable is zero), then the function should plot the magnitude and phase responses before returning. (Hint: The polyval function may be helpful.) (b) Use the function developed in part (a) to plot the magnitude and phase responses of the system with the frequency response
H(ω) = 16.0000
1.0000ω4 - j5.2263ω3 -13.6569ω2 + j20.9050ω +16.0000
.
For each of the plots, use the frequency range [-5,5]. (c) What type of ideal frequency-selective filter does this system approximate?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply