Presentation is loading. Please wait.

Presentation is loading. Please wait.

Signals and Systems Revision Lecture 2

Similar presentations


Presentation on theme: "Signals and Systems Revision Lecture 2"โ€” Presentation transcript:

1 Signals and Systems Revision Lecture 2
DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON

2 Sampling In this revision lecture we will focus on: Sampling.
The ๐‘งโˆ’ transform.

3 Sampling The sampling process converts continuous signals ๐‘ฅ(๐‘ก) into numbers ๐‘ฅ[๐‘›]. A sample is kept every ๐‘‡ ๐‘  units of time. This process is called uniform sampling and ๐‘ฅ ๐‘› =๐‘ฅ(๐‘› ๐‘‡ ๐‘  ). ๐‘ฅ(๐‘ก) ๐‘‡ ๐‘  =1/ ๐‘“ ๐‘  ๐‘ฅ[๐‘›]

4 Sampling theorem Sampling theorem is the bridge between continuous-time and discrete-time signals. It states how often we must sample in order not to loose any information. ๐‘ฅ(๐‘ก) ๐‘‡ ๐‘  =1/ ๐‘“ ๐‘  ๐‘ฅ[๐‘›] Sampling theorem A continuous-time lowpass signal ๐‘ฅ(๐‘ก) with frequencies no higher than ๐‘“ ๐‘š๐‘Ž๐‘ฅ ๐ป๐‘ง can be perfectly reconstructed from samples taken every ๐‘‡ ๐‘  units of time, ๐‘ฅ ๐‘› =๐‘ฅ(๐‘› ๐‘‡ ๐‘  ), if the samples are taken at a rate ๐‘“ ๐‘  =1/ ๐‘‡ ๐‘  that is greater than 2๐‘“ ๐‘š๐‘Ž๐‘ฅ .

5 Recall: spectrum of sampled signal
Consider a signal, bandlimited to ๐ต๐ป๐‘ง, with Fourier transform ๐‘‹(๐œ”) (depicted real for convenience). The sampled signal has the following spectrum.

6 Reconstruction of the original signal
The gap between two adjacent spectral repetitions is (๐‘“ ๐‘  โˆ’2๐ต)๐ป๐‘ง. In theory, in order to reconstruct the original signal ๐‘ฅ(๐‘ก), we can use an ideal lowpass filter on the sampled spectrum which has a bandwidth of any value between ๐ต and ( ๐‘“ ๐‘  โˆ’๐ต๐ป๐‘ง). Reconstruction process is possible only if the shaded parts do not overlap. This means that ๐‘“ ๐‘  must be greater that twice ๐ต. We can also visually verify the sampling theorem in the above figure.

7 Reconstruction generic example
Frequency domain The signal ๐‘ฅ ๐‘› ๐‘‡ ๐‘  =<๐‘ฅ ๐‘ก ,๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )> has a spectrum ๐‘‹ ๐‘  (๐œ”) which is multiplied with a rectangular pulse in frequency domain.

8 Reconstruction generic example cont.
Time domain The signal ๐‘ฅ ๐‘› ๐‘‡ ๐‘  =<๐‘ฅ ๐‘ก ,๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )> is convolved with a sinc function, which is the time domain version of a rectangular pulse in frequency domain centred at the origin. <๐‘ฅ ๐‘ก ,๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )>โˆ— sinc ๐‘Ž๐‘ก = ๐‘› ๐‘ฅ[๐‘›] sinc[๐‘Ž(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )] [Recall that convolution with a shifted Delta function, shifts the original function at the location of the Delta function].

9 Recall Nyquist sampling: Just about the correct sampling rate
In that case we use the Nyquist sampling rate of 10๐ป๐‘ง=2๐ต๐ป๐‘ง. The spectrum ๐‘‹ ๐œ” consists of back-to-back, non-overlapping repetitions of 1 ๐‘‡ ๐‘  ๐‘‹ ๐œ” repeating every 10๐ป๐‘ง. In order to recover ๐‘‹(๐œ”) from ๐‘‹ ๐œ” we must use an ideal lowpass filter of bandwidth 5๐ป๐‘ง. This is shown in the right figure below with the dotted line.

10 Recall oversampling: What happens if we sample too quickly?
Sampling at higher than the Nyquist rate (in this case 20๐ป๐‘ง) makes reconstruction easier. The spectrum ๐‘‹ ๐œ” consists of non-overlapping repetitions of 1 ๐‘‡ ๐‘  ๐‘‹ ๐œ” , repeating every 20๐ป๐‘ง with empty bands between successive cycles. In order to recover ๐‘‹(๐œ”) from ๐‘‹ ๐œ” we can use a practical lowpass filter and not necessarily an ideal one. This is shown in the right figure below with the dotted line. The filter we use for reconstruction must have gain ๐‘‡ ๐‘  and bandwidth of any value between ๐ต and ( ๐‘“ ๐‘  โˆ’๐ต)๐ป๐‘ง.

11 Recall undersampling: What happens if we sample too slowly?
Sampling at lower than the Nyquist rate (in this case 5๐ป๐‘ง) makes reconstruction impossible. The spectrum ๐‘‹ ๐œ” consists of overlapping repetitions of 1 ๐‘‡ ๐‘  ๐‘‹ ๐œ” repeating every 5๐ป๐‘ง. ๐‘‹(๐œ”) is not recoverable from ๐‘‹ ๐œ” . Sampling below the Nyquist rate corrupts the signal. This type of distortion is called aliasing.

12 Problem: Reconstruction of the continuous time using the sample and hold operation
As already mentioned, in order to reconstruct the original signal ๐‘ฅ(๐‘ก) in theory, we can use an ideal lowpass filter on the sampled spectrum. In practice, there are various circuits/devices which facilitate reconstruction of the original signal from its sampled version. Consider a continuous-time, band-limited signal ๐‘ฅ ๐‘ก , limited to bandwidth ๐œ” โ‰ค2๐œ‹ร—๐ต rad/sec. We sample ๐‘ฅ ๐‘ก uniformly with sampling frequency ๐‘“ ๐‘  to obtain the discrete-time signal ๐‘ฅ[๐‘›]. A possible technique to reconstruct the continuous-time signal from its samples is the so called sample and hold circuit. This is an analogue device which samples the value of a continuously varying analogue signal and outputs the following signal ๐‘ฅ ๐ท๐ด ๐‘ก . ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘ฅ[๐‘›] ๐‘› ๐‘“ ๐‘  โˆ’ ๐‘‡ ๐‘  2 <๐‘ก< ๐‘› ๐‘“ ๐‘  + ๐‘‡ ๐‘  2 ๐‘ฅ ๐‘› /2 ๐‘ก= ๐‘› ๐‘“ ๐‘  ยฑ ๐‘‡ ๐‘  otherwise = ๐‘ฅ[๐‘›] ๐‘› ๐‘‡ ๐‘  โˆ’ ๐‘‡ ๐‘  2 <๐‘ก<๐‘› ๐‘‡ ๐‘  + ๐‘‡ ๐‘  2 ๐‘ฅ ๐‘› /2 ๐‘ก=๐‘› ๐‘‡ ๐‘  ยฑ ๐‘‡ ๐‘  otherwise

13 Reconstruction of the continuous time using the sample and hold operation cont.
The figure below facilitates the understanding of sample and hold operation. The grey continuous curve depicts the continuous signal ๐‘ฅ ๐‘ก . The red arrows depict the locations of the discrete (sampled) signal ๐‘ฅ ๐‘› . The green continuous curve depicts the signal ๐‘ฅ ๐ท๐ด ๐‘ก .

14 Problem: Reconstruction of the continuous time using the sample and hold operation cont.
In the sample and hold operation the signal is written as: ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )ฮ  ๐‘กโˆ’ ๐‘› ๐‘“ ๐‘  ๐‘‡ ๐‘  with ฮ  ๐‘ก the very well known unit gate or rectangle function: ฮ  ๐‘ก =rect ๐‘ก = 1 ๐‘ก < ๐‘ก =0.5 0 otherwise Note that the values at ๐‘ก=ยฑ0.5 do not have any impact in the Fourier Transform of ฮ  ๐‘ก and alternative definitions of ฮ  ๐‘ก have rect ยฑ0.5 to be 0, 1 or undefined.

15 ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  ) ๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘ 
Problem: Reconstruction of the continuous time using the sample and hold operation cont. Taking into consideration that: ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )ฮ  ๐‘กโˆ’ ๐‘› ๐‘“ ๐‘  ๐‘‡ ๐‘  it is straightforward to show that: ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  ) ๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  )โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘  ๐‘ฅ ๐ท๐ด ๐‘ก =( ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) )โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘ 

16 ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘ 
Problem: Reconstruction of the continuous time using the sample and hold operation cont. ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘  The Fourier transform of the function ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) is 1 ๐‘‡ ๐‘  ๐‘˜=โˆ’โˆž โˆž ๐‘‹(๐œ”+๐‘˜ 2๐œ‹ ๐‘‡ ๐‘  ) . The Fourier transform of the function ฮ  ๐‘ก ๐‘‡ ๐‘  can be easily found using the definition of the Fourier transform. The Fourier transform of ๐‘ฅ ๐ท๐ด ๐‘ก is the product of the two Fourier transforms described above (remember that convolution in time becomes multiplication in frequency).

17 ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘ 
Problem: Reconstruction of the continuous time using the sample and hold operation cont. ๐‘ฅ ๐ท๐ด ๐‘ก = ๐‘›=โˆ’โˆž โˆž ๐‘ฅ(๐‘› ๐‘‡ ๐‘  )๐›ฟ(๐‘กโˆ’๐‘› ๐‘‡ ๐‘  ) โˆ—ฮ  ๐‘ก ๐‘‡ ๐‘  We can show that ๐‘‹ ๐ท๐ด ๐œ” = 1 ๐‘‡ ๐‘  ๐‘˜=โˆ’โˆž โˆž ๐‘‹(๐œ”+๐‘˜ 2๐œ‹ ๐‘‡ ๐‘  ) โˆ™ ๐‘‡ ๐‘  sinc ๐œ” ๐‘‡ ๐‘  2 = ๐‘˜=โˆ’โˆž โˆž ๐‘‹(๐œ”+๐‘˜ 2๐œ‹ ๐‘‡ ๐‘  ) โˆ™ sinc ๐œ” ๐‘‡ ๐‘  2 In order to recover the original spectrum ๐‘‹(๐œ”) we can remove the replications ๐‘‹(๐œ”+๐‘˜ 2๐œ‹ ๐‘‡ ๐‘  ) by passing ๐‘‹ ๐ท๐ด ๐œ” through a lowpass filter. Note that the term sinc ๐œ” ๐‘‡ ๐‘  2 must be removed from ๐‘‹ ๐ท๐ด ๐œ” .

18 Example Consider a LTI system with input ๐‘ฅ[๐‘›] and output ๐‘ฆ[๐‘›] related with the difference equation: ๐‘ฆ ๐‘›โˆ’2 โˆ’ 5 2 ๐‘ฆ ๐‘›โˆ’1 +๐‘ฆ ๐‘› =๐‘ฅ[๐‘›] Determine the impulse response and its ๐‘งโˆ’transform in the following three cases: The system is causal. The system is stable. The system is neither stable nor causal.

19 Recall: Find the ๐’›โˆ’transform of ๐’™ ๐’ =๐œธ ๐’ ๐’–[๐’]
Find the ๐‘งโˆ’transform of the causal signal ๐›พ ๐‘› ๐‘ข[๐‘›], where ๐›พ is a constant. By definition: ๐‘‹[๐‘ง]= ๐‘›=โˆ’โˆž โˆž ๐›พ ๐‘› ๐‘ข ๐‘› ๐‘ง โˆ’๐‘› = ๐‘›=0 โˆž ๐›พ ๐‘› ๐‘ง โˆ’๐‘› = ๐‘›=0 โˆž ๐›พ ๐‘ง ๐‘› =1+ ๐›พ ๐‘ง + ๐›พ ๐‘ง ๐›พ ๐‘ง 3 +โ€ฆ We apply the geometric progression formula: 1+๐‘ฅ+ ๐‘ฅ 2 + ๐‘ฅ 3 +โ€ฆ= 1 1โˆ’๐‘ฅ , ๐‘ฅ <1 Therefore, ๐‘‹[๐‘ง]= 1 1โˆ’ ๐›พ ๐‘ง , ๐›พ ๐‘ง <1 = ๐‘ง ๐‘งโˆ’๐›พ , ๐‘ง > ๐›พ We notice that the ๐‘งโˆ’transform exists for certain values of ๐‘ง. These values form the so called Region-Of-Convergence (ROC) of the transform.

20 Recall: Find the ๐’›โˆ’transform of ๐’™ ๐’ =โˆ’๐œธ ๐’ ๐’–[โˆ’๐’โˆ’๐Ÿ]
Find the ๐‘งโˆ’transform of the anticausal signal โˆ’ ๐›พ ๐‘› ๐‘ข[โˆ’๐‘›โˆ’1], where ๐›พ is a constant. By definition: ๐‘‹[๐‘ง]= ๐‘›=โˆ’โˆž โˆž โˆ’ ๐›พ ๐‘› ๐‘ข โˆ’๐‘›โˆ’1 ๐‘ง โˆ’๐‘› = ๐‘›=โˆ’โˆž โˆ’1 โˆ’ ๐›พ ๐‘› ๐‘ง โˆ’๐‘› =โˆ’ ๐‘›=1 โˆž ๐›พ โˆ’๐‘› ๐‘ง ๐‘› =โˆ’ ๐‘›=1 โˆž ๐‘ง ๐›พ ๐‘› =โˆ’ ๐‘ง ๐›พ ๐‘›=0 โˆž ๐‘ง ๐›พ ๐‘› =โˆ’ ๐‘ง ๐›พ ๐‘ง ๐›พ + ๐‘ง ๐›พ ๐‘ง ๐›พ 3 +โ€ฆ Therefore, ๐‘‹[๐‘ง]=โˆ’ ๐‘ง ๐›พ 1 1โˆ’ ๐‘ง ๐›พ , ๐‘ง ๐›พ <1 = ๐‘ง ๐‘งโˆ’๐›พ , ๐‘ง < ๐›พ We notice that the ๐‘งโˆ’transform exists for certain values of ๐‘ง, which consist the complement of the ROC of the function ๐›พ ๐‘› ๐‘ข[๐‘›] with respect to the ๐‘งโˆ’plane.

21 Example cont. Consider a LTI system with input ๐‘ฅ[๐‘›] and output ๐‘ฆ[๐‘›] related with the difference equation: ๐‘ฆ ๐‘›โˆ’2 โˆ’ 5 2 ๐‘ฆ ๐‘›โˆ’1 +๐‘ฆ ๐‘› =๐‘ฅ[๐‘›] By taking the ๐‘งโˆ’transform in both sides of the above equation, we obtain: ๐‘ง โˆ’2 โˆ’ 5 2 ๐‘ง โˆ’1 +1 ๐‘Œ ๐‘ง =๐‘‹ ๐‘ง โ‡’ ๐‘Œ(๐‘ง) ๐‘‹(๐‘ง) = 1 ๐‘ง โˆ’2 โˆ’ 5 2 ๐‘ง โˆ’1 +1 = 1 ( ๐‘ง โˆ’1 โˆ’2)( ๐‘ง โˆ’1 โˆ’ 1 2 ) = ( ๐‘ง โˆ’1 โˆ’2) โˆ’ ( ๐‘ง โˆ’1 โˆ’ 1 2 )

22 Example cont. The impulse response that corresponds to the term ( ๐‘ง โˆ’1 โˆ’2) =(โˆ’ 1 3 ) ๐‘ง ๐‘งโˆ’ can be: โ„Ž 1 ๐‘› = โˆ’ ๐‘› ๐‘ข ๐‘› or โ„Ž 2 ๐‘› = ๐‘› ๐‘ข โˆ’๐‘›โˆ’1 The impulse response that corresponds to the term โˆ’ 2 3 ( ๐‘ง โˆ’1 โˆ’ 1 2 ) = 4 3 ๐‘ง ๐‘งโˆ’2 can be: โ„Ž 3 ๐‘› = ๐‘› ๐‘ข ๐‘› or โ„Ž 4 ๐‘› = (โˆ’ 4 3 ) 2 ๐‘› ๐‘ข โˆ’๐‘›โˆ’1

23 Example cont. In order for the system to be stable:
โ„Ž ๐‘› = โˆ’ ๐‘› ๐‘ข ๐‘› โˆ’ ๐‘› ๐‘ข โˆ’๐‘›โˆ’1 In order for the system to be causal: โ„Ž ๐‘› = โˆ’ ๐‘› ๐‘ข ๐‘› ๐‘› ๐‘ข ๐‘› In order for the system to be neither stable nor causal the remaining two combinations should be considered.


Download ppt "Signals and Systems Revision Lecture 2"

Similar presentations


Ads by Google