Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 3 MATLAB LABORATORY 3. Spectrum Representation Definition: A spectrum is a graphical representation of the frequency content of a signal. Formulae:

Similar presentations


Presentation on theme: "Lecture 3 MATLAB LABORATORY 3. Spectrum Representation Definition: A spectrum is a graphical representation of the frequency content of a signal. Formulae:"— Presentation transcript:

1 lecture 3 MATLAB LABORATORY 3

2 Spectrum Representation Definition: A spectrum is a graphical representation of the frequency content of a signal. Formulae: Sum Of Sinusoidal Signals N x(t)= A o + ∑ A k cos(2*pi*f k *t + ø k ) k=1 = N X o + Re{ ∑ X k exp(j*2*pi*f k *t)} k=1

3 Where X o = A o is a real constant, and X k = A k exp(j* ø k ) is the complex amplitude (i.e. the phasor) for the complex exponential frequency f k. The spectrum is also a graphical presentation of the individual sinusoidal components that make up the signal.

4 Spectrum of Sinusoids Sinusoids are very important as they are basic building blocks for making more complicated signals. The most important and powerful method of producing new signals from sinusoids is the additive linear combination. Where a signal is created by adding together a constant and N sinusoids of different frequencies, amplitude and phase.

5 Formulae : N x(t)=A o + ∑ A k cos(2*pi*f k *t + ø k ) k=1 Where each amplitude, phase and frequency can be chosen independently. In Phasor representation x(t) can also be represented as: N x(t)= X o + ∑ Re { X k exp(j*2*pi*f k *t)} K=1 Example 3.1

6 Where X o = A o represents a real constant component, and each phasor X k = A k exp(j* ø k ) represents the magnitude and phase of a rotating phasor whose frequency is f k. Using Inverse Euler formula we can write x(t) as N x(t)=X o + ∑ {X k /2 exp(j*2*pi*f k *t) + X k */2 exp k=1 (-j*2*pi*fk*t)}

7 We define the two sided spectrum of a signal composed of sinusoids as in above x(t) to be the set of 2N+1 complex phasors and 2N+1 frequencies that specify the signal representation of x(t). The definition of spectrum is just set of pairs { (X o,0), (1/2 X 1,f 1 ), (1/2 X 1 *,- f 1 ) …………} Each pair (1/2X k,f k ) indicates the size and relative phase of the sinusoidal component contributing at frequency f k.

8 It is common to refer spectrum as the frequency domain representation of the signal. The frequency domain representation simply gives the information required to synthesize the signal. Example: x(t) = 10 + 14cos(200*pi*t -pi/3) + 8cos(500*pi*t+pi/2) Applying inverse Euler’s formula we get x(t) = 10 + 7 exp(-j*pi/3) exp(j*2*pi*100*t) + 7 exp(j*pi/3) exp(- j*2*pi*100*t) + 4 exp(j*pi/2) exp(j*2*pi*250*t) + 4 exp(- j*pi/2) exp(- j*2*pi*250*t)

9 The spectrum of the signal is the set of five rotating phasors represented by { (10,0), (7 exp(- j*pi/3),100), (7 exp( j*pi/3),-100), (4 exp(j*pi/2),250) (4exp(- j*pi/2, -250) } The constant component of the signal, often called as the DC component can be expressed as a complex exponential signal with zero frequency i.e. 10 exp(j*0*t) =10. >> f =[-250,-100,0,100,250]; >> y =[4,7,10,7,4]; >> stem(f,y) >> axis([-300 300,0 15 ])

10

11 Graphical plot of the spectrum A plot of the spectrum contains frequency component represented by a straight line at that frequency. And its length is given by the magnitude of the corresponding phasor. This simple but effective plot makes easy two things 1) The relative location of the frequencies 2) The relative amplitudes of the sinusoidal components.

12 A general procedure to compute and plot the spectrum for any given signal. It is necessary to express the signals as complex exponentials (by using inverse Euler relation) And then plot the complex amplitude of each of the positive and negative frequency components at the corresponding frequency. In other words the process of analyzing the signal to find its spectral components involves simply looking at an equation and picking off the amplitude, phase and frequency

13 Beat Notes When two sinusoidal signals of different frequencies are multiplied,then it creates an interesting audio effect called a Beat note. This interesting sound can be best heard by picking one of the frequencies to be very small. Another use of multiplying sinusoids is for Modulation.

14 To plot spectrum of a signal the signal should be expressed as additive linear combination of complex exponential signal. And a product of two sinusoids can be written as sum of complex exponential signal by using inverse Euler formula. Beat notes are also produced by adding two sinusoids with nearly identical frequencies, e.g., by playing two neighboring piano keys.

15 As the previous example suggests that the sum of two sinusoids can also be written as a product. Let x(t)=cos(2*pi*f 1 *t) +cos(2*pi*f 2 *t) The two frequencies are expressed as f 1 =f c – f Δ f 2 =f c + f Δ Where fc is the center frequency and f Δ is the deviation frequency. fc = (f 1 +f 2 )/2 f Δ = (f 1 -f 2 )/2.

16 After the use of Euler formula to the equation we obtain the equation of x(t) as x(t)=2*cos(2*pi*f Δ *t)*cos(2*pi*f c *t) Let f c =200 and f Δ =20 >> t=0:1/2000:0.1; >> x=2*cos(2*pi*20*t).*cos(2*pi*200*t); >> plot(t,x) >> sound(x,2000)

17

18 If we listen to such x(t) we can hear that the f Δ Variation causes the signal to fade in and fade out because of the signal envelope falling and rising. This is the phenomenon called Beating of tones in music. If f Δ is reduced to 9Hz we can see that the envelope of the 200Hz tone changes slowly. >> t=0:1/2000:0.1; >> x=2*cos(2*pi*9*t).*cos(2*pi*200*t); >> plot(t,x) >> sound(x,2000)

19

20 The time interval between nulls of the envelops is ½(1/f Δ ),so the more closely spaced the sinusoids,the slower the envelope variation. Musicians use this phenomenon as an aid in tuning two instruments to the same pitch. When two notes are close but not identical in frequency, the beating phenomenon is heard. As on pitch is changed to become closer and closer to the other,this effect disappears,and the two instruments are then in tune.

21 Amplitude Modulation Multiplying two sinusoids is also useful in modulation for communication systems. Amplitude Modulation is the process of multiplying a low frequency signal with a frequency sinusoid. In other words changing the amplitude of the high frequency signal according to the change in the message signal to be transmitted is called as amplitude modulation. Where the high frequency signal is called as the carrier signal and its frequency is called as carrier frequency.

22 Example say v(t)=(5+2*cos(40*pi*t)) x(t)=v(t)*cos(400*pi*t) >> t=0:1/2000:0.1; >> x=(5+2*cos(40*pi*t)).*cos(2*pi*200*t); >> plot(t,x) The primary difference between this Amplitude modulated signal and the beat signal is that the envelope never goes to zero as the case of beat signal.

23

24 In the frequency domain the Am signal spectrum is nearly same as the beat signal,the only difference being a large term at f = f c Where f c is the center frequency. HW: Problem 3.1, Exercise 3.1


Download ppt "Lecture 3 MATLAB LABORATORY 3. Spectrum Representation Definition: A spectrum is a graphical representation of the frequency content of a signal. Formulae:"

Similar presentations


Ads by Google