Question

Hi, can someone help me obtain the Figure 1 graph using Matlab? I need to see the code how you do the DTFT in Matlab. Thanks!

The impulse response of a discrete-time LTI (linear time-invariant) system is, h[n] = Sinna Refer to Table 5.2 in the textbook for the basic discrete-time Fourier transform pairs The frequency response of the LTl system is, H (ejo, Here, H(e) is periodic with period 2 Step 2 of 31 Sketch the frequency response of the system He* ) Figure 1

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

MATLAB code is given below in bold letters followed by the frequency response plot.

clc;
clear all;
close all;

nmax = 1000;
n = -nmax:nmax;
W = 1;% lets say W=1
h = sin(W*n)./(pi*n);
h(nmax+1) = W/pi;
w = -2*pi:0.01:2*pi;
for k = 1:length(w)
H(k) = sum(h.*exp(-1j*w(k)*n));
end

figure;plot(w,H);grid;xlabel('w');ylabel('Amplitude');
title('Spectrum of h[n]:H(exp(jw))');

Spectrum of h[n]: H(exp(jw)) 1.2 0.8 a 0.6 0.4 0.2 0 0.2 -8 -6 -4 -2 0 2 4

*** As the number of terms increase, the ripple will decrease.

Add a comment
Know the answer?
Add Answer to:
Hi, can someone help me obtain the Figure 1 graph using Matlab? I need to see...
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
  • Consider the cascade of LTI discrete-time systems shown in Figure P2.37. LTI System 1 hi[n], H...

    Consider the cascade of LTI discrete-time systems shown in Figure P2.37. LTI System 1 hi[n], H (el) LTI System 2 h2[n], H2(eje) Figure P2.37 The first system is described by the frequency response Hi(j =c-joo < 0.25% 11 0.25% < and the second system is described by <A hain) = 2 Sin(0.57) (a) Determine an equation that defines the frequency response, H(e)®), of the overall system over the range -- SUSA. (b) Sketch the magnitude. He"), and the phase, ZH(e)),...

  • 1. Using appropriate properties and the table of Fourier transforms, obtain and sketch the sin(at) Fourier...

    1. Using appropriate properties and the table of Fourier transforms, obtain and sketch the sin(at) Fourier transform of the signal x()cn(31-4 marks) 2fX(a), determine the Fourier transform of the signal y(t)dx( F.T. dx(2t) dt (3 marks) 3. Find the Fourier transform of x(t)-cos(2t/4). (3 marks) 4. Let x(t) be the input to a linear time-invariant system. The observed output is y(t) 4x(t 2). Find the transfer function H() of the system. Hence, obtain and sketch the unit-impulse response h(t) of...

  • 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...

  • (e) Consider an LTI system with impulse response h(t) = π8ǐnc(2(t-1). i. (5 pts) Find the frequency response H(jw). Hint: Use the FT properties and pairs tables. ii. (5 pts) Find the output y(t) when...

    (e) Consider an LTI system with impulse response h(t) = π8ǐnc(2(t-1). i. (5 pts) Find the frequency response H(jw). Hint: Use the FT properties and pairs tables. ii. (5 pts) Find the output y(t) when the input is (tsin(t) by using the Fourier Transform method. 3. Fourier Transforms: LTI Systems Described by LCCDE (35 pts) (a) Consider a causal (meaning zero initial conditions) LTI system represented by its input-output relationship in the form of a differential equation:-p +3讐+ 2y(t)--r(t). i....

  • Explain how fourier transform is done? 1. (8 points) Suppose a particular discrete-time linear and time-invariant...

    Explain how fourier transform is done? 1. (8 points) Suppose a particular discrete-time linear and time-invariant (LTI) system has frequency response H(e) and that when its input is z[n] = 2 cos (n). the corresponding output is y[n] = 6 cos (n+ ) Find the real part and imaginary part of H(e)") at w = .

  • Problem 5.3 (20 Points) A discrete-time, linear time-invariant system H is formed by ar- ranging three...

    Problem 5.3 (20 Points) A discrete-time, linear time-invariant system H is formed by ar- ranging three individual LTI systems as shown below. LTI LII System 1 System 2 n] > >yn] ATI System 3 Figure 2: The cascaded LTI system H. The frequency response of the individual system H, is as follows: H2 : H el) = -1 + 2e- ja The impulse response of the other individual systems are as follows: Huhn = 0[n] - [n - 1] +...

  • A cascaded system that consists of an LTI system and a delay system is shown in...

    A cascaded system that consists of an LTI system and a delay system is shown in Figure Q4(b). The input signal X(t) and impulse response of the LTI system, h(t) are given as the following: x(t) = 6-2&u(t) h(t) = e-fu(t) Determine: The Fourier transform of y(t). (3 marks) The Fourier transform of z(t). (3 marks) A basic modulator circuit is shown in Figure Q4(c). Modulation is a multiplication between input signal, m(t), and a carrier signal, c(t). The process...

  • So sorry for the long question, I am able to do a) and b) but not...

    So sorry for the long question, I am able to do a) and b) but not sure about the rest 2. Consider the DT LTI system defined by the impulse response h[n]-i[n]-?[n-1]. The input to this system is the signal rn: (a) Sketch hn and n (b) Determine the output of the system, y[n], using convolution. Sketch y[n (c) Determine the DTFTs H(ei) and X(e). Make fully-labeled sketches of the magn tudes of these DTFTs. (d) Recall that the discrete...

  • 1. (15 points) Review Carefully read each statement below and identify it as True or False...

    1. (15 points) Review Carefully read each statement below and identify it as True or False and, for each answer, explain your reasoning briefly in 1-2 sentences. 1. A 100KHz tone (i.e., sinusoid) is input to an LTI system. The frequency spectrum of the output signal may include components at integer multiples of 100KHz. True or False? Why? 2. The phase of the Fourier transform of a real-valued signal with odd symmetry will always be +90 deg. True or False?...

  • I got help with task 1 and 2 . can you help me with task 3 and 4 of this question. please help me...

    I got help with task 1 and 2 . can you help me with task 3 and 4 of this question. please help me step for step thanks. A signal x[n] modulated by multiplying it by a carrier wave cos(2*p1"/cm) to form the signal z[n] = cos(2"p1"Vcm)x[n] ·The modulated signal z[n] multiplies with the same carrier wave to give the signal y[n]=cos(2*pi"Vcm)z[n] and filters with an LT-system to give x-hat [n] . all this are described by the picture below...

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