Question

1. Use the MATLAB command freqz to calculate the DTFT of System 1, to find its frequency response 0.25r[n] + 0.25r|n -2]. H()

In y1 n Figure 3: System 1 model[n 2In Figure 4: System 2 model

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB code is given below in bold letters.

clc;
close all;
clear all

% questions 1 and 2
% define the numerator and denominator coefficients
numerator = [0.25 0 0.25];
denominator = 1;
% define the frequency resolution
del_w = pi/100;
%define the frequency vector
w = -pi:del_w/pi:pi;
% now compute the frequency reponse using the command
H1 = freqz(numerator,denominator,w);

% plot the frequency repsonse as given below
% use subplots for magnitude and phase
figure;
subplot(211);
plot(w,abs(H1),'linewidth',2);grid on;xlabel('w');ylabel('Amplitude');
title('magnitude response of system #1 |H_1(exp(jw))|');

subplot(212);
plot(w,angle(H1)*57.3,'linewidth',2);grid on;xlabel('w');ylabel('Degrees');
title('phase response of system #1 ');


% questions 3 and 4 for system #2
% define the numerator and denominator coefficients
numerator = [1 1 1];
denominator = 1;
% define the frequency resolution
del_w = pi/100;
%define the frequency vector
w = -pi:del_w/pi:pi;
% now compute the frequency reponse using the command
H2 = freqz(numerator,denominator,w);

% plot the frequency repsonse as given below
% use subplots for magnitude and phase
figure;
subplot(211);
plot(w,abs(H2),'linewidth',2);grid on;xlabel('w');ylabel('Amplitude');
title('magnitude response of system #2 |H_2(exp(jw))|');

subplot(212);
plot(w,angle(H2)*57.3,'linewidth',2);grid on;xlabel('w');ylabel('Degrees');
title('phase responseof system #2 ');

magnitude response of system #1/H,(exp(jw) 0.6 0.4 0.2 -3 2 phase response of system #1 100 50 -50 -100 -3 -2 2

magnitude response of system #2]H,(exp(jw) -3 2 phase response°f system #2 100 50 -50 -100 -3 -2 2

Add a comment
Know the answer?
Add Answer to:
1. Use the MATLAB command freqz to calculate the DTFT of System 1, to find its frequency response...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 1: Find Xo),the DTFT of sinlFndi' Z transfomn and DTFT. Plot its amplitude frequency spectrum...

    Problem 1: Find Xo),the DTFT of sinlFndi' Z transfomn and DTFT. Plot its amplitude frequency spectrum for-π<ω<π. What is the period of X(o)?

  • 0.1311(22 2z1 5. The transfer function of a system is H(z) = z2-0.74780.2722 a) Find the frequency response function of...

    0.1311(22 2z1 5. The transfer function of a system is H(z) = z2-0.74780.2722 a) Find the frequency response function of the system b) Let xn] 1 cos(0.2nt)+cos(0.45n7). Find the steady-state response. Use Matlab c) Plot the magnitude and phase response using Matlab 0.1311(22 2z1 5. The transfer function of a system is H(z) = z2-0.74780.2722 a) Find the frequency response function of the system b) Let xn] 1 cos(0.2nt)+cos(0.45n7). Find the steady-state response. Use Matlab c) Plot the magnitude and...

  • BC:9.4 A LTI discrete time system has an impulse response h[n] = (−0.6)nu[n] + (0.95)nu[n −...

    BC:9.4 A LTI discrete time system has an impulse response h[n] = (−0.6)nu[n] + (0.95)nu[n − 1] Find the transfer function, Hˆ (e jωˆ ), in the normalized frequency domain. Use Matlab to plot the magnitude and phase (in degrees) of Hˆ (e jωˆ ) in the range of −π ≤ ωˆ ≤ π. Attach your Matlab source code with the plots. BC:9.4 A LTI discrete time system has an impulse response h[n] = (-0.6)"u[n] + (0.95)"u[n-1] Find the transfer...

  • 4. Consider the magnitude and phase of the frequency response Hi(2) of a linear and time-invariant...

    4. Consider the magnitude and phase of the frequency response Hi(2) of a linear and time-invariant (LTI) discrete-time System 1, given for-r < Ω-T, as: H, (12)| 10 phase H1(Ω)--0 for all Ω (a) Suppose an 5cos(n s input to System 1. Find the output ya[n] (b) Suppose ancos(is input to System 1. Find the output ybn] (c) Suppose I take the discrete-time signal from part (a): xa[n] 5cos(n), but I remove half of the values: to arrive at a...

  • For the LTI system with the difference equation y[n] = 0.25x[n] +0.5x[n-1] + 0.25x[n-2] a. Find...

    For the LTI system with the difference equation y[n] = 0.25x[n] +0.5x[n-1] + 0.25x[n-2] a. Find the impulse response h[n] (this is y[n] when x[n] = δ[n] ) b. Find the frequency response function H(?^?ω). Your result should be in the form of A(?^?θ(?) )[cos(αω)+β]. Specify values for A, ?(?), α,and β c. Evaluate H(?^?ω) for ω = π , π/2 , π/4, 0, -π/4, - π/2, -π d. Plot H(?^?ω) in magnitude and phase for –π < ω <...

  • Problem 3 (20 points) A Bode plot is a graph of the frequency response of a system. It is a combi...

    Problem 3 (20 points) A Bode plot is a graph of the frequency response of a system. It is a combination of a magnitude plot, expressing the magnitude in dB of the frequency response, and a phase plot expressing the phase shift. Both quantities are plotted on a horizontal axis proportional to the logarithm of the frequency. Below is an example of a Bode plot created in Matlab. Bode Diagram 0 -20 3-40 E-60 -80 180 90 10 10 10...

  • Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. •...

    Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. • Get acquainted with Matlab/Octave 1) Start MATLAB and change the “Current Directory” in the top of the window (or type) >> cd '' (example: >> cd 'C:\NIU\lab2') Alternatively, if you don't want to use MATLAB, you can open a web-browser and go to “octave-online.net”. 2) Download and execute LAB2forStudent_A.M with >> lab2forStudent_A and observe that it produces a Discrete-Time (DT) signal xVec. 3) TO...

  • 9. Use Matlab to calculate the harmonic frequency (nwo), the harmonic amplitude (cn), and the nth...

    9. Use Matlab to calculate the harmonic frequency (nwo), the harmonic amplitude (cn), and the nth phase angle (δ.) for n 0, 1, 2, ...-10 for Problem 1. Plot (cn) and (6n) as a function of (nwo). We were unable to transcribe this image 9. Use Matlab to calculate the harmonic frequency (nwo), the harmonic amplitude (cn), and the nth phase angle (δ.) for n 0, 1, 2, ...-10 for Problem 1. Plot (cn) and (6n) as a function of...

  • Objective Conduct DTFT, DTFS on a periodic discrete signal. Task: Consider the system with impulse response...

    Objective Conduct DTFT, DTFS on a periodic discrete signal. Task: Consider the system with impulse response Tth sin 8 h(n) S(n) Tn (1) Find the Fourier-series representation for the output y(n) when the input x(n) is the periodic extension of the sequence 3/2, -1,0, -3/2, 1,0 Plot the x(n), h(n), y(n) and Fourier coefficient bk using Matlab or handwriting (Example 7.2.6 irse material) in cour (2) Find the output y(n) of the system with the input 1 Tn Tn x(п)...

  • 20. a. Find the system function given the following difference equation: = x (n b. Find the steady-state response to x(...

    20. a. Find the system function given the following difference equation: = x (n b. Find the steady-state response to x(n)-cos(π n). C. Find the magnitude and phase of the frequency response for π. ω d. Obtain b from c 20. a. Find the system function given the following difference equation: = x (n b. Find the steady-state response to x(n)-cos(π n). C. Find the magnitude and phase of the frequency response for π. ω d. Obtain b from c

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT