Digital Signal Processing Lab 4: Figure 3.1: Basic View of Sampling Theorem
Digital Signal Processing Lab 4: Figure 3.1: Basic View of Sampling Theorem
Digital Signal Processing Lab 4: Figure 3.1: Basic View of Sampling Theorem
We only sample the signal at intervals. We don't know what happened between the samples. A crude
example is to consider a 'glitch' that happened to fall between adjacent samples. Since we don't
measureit,wehavenowayofknowingtheglitchwasthereatall.
Figure3.1:BasicviewofSamplingtheorem
In a less obvious case, we might have signal components that are varying rapidly in between samples.
Again, we could not track these rapid intersample variations. We must sample fast enough to see the
mostrapidchangesinthesignal.Sometimeswemayhavesomeaprioriknowledgeofthesignal,orbe
abletomakesomeassumptionsabouthowthesignalbehavesinbetweensamples.Ifwedonotsample
fastenough,wecannottrackcompletelythemostrapidchangesinthesignal.Somehigherfrequencies
canbeincorrectlyinterpretedasloweronesasshowninfig3.2below:
Figure3.2:OverlappingofHighfrequencysignalintoLowfrequencysignal( )
Figure3.3:Reconstructionofsignalwith
Inthediagram,thehighfrequencysignalissampledtwiceeverycycle.Ifwedrawasmoothconnecting
linebetweenthesamples,theresultingcurvelooksliketheoriginalsignal.Butifthesampleshappened
to fall at the zero crossings, we would see no signal at all this is why the sampling theorem demands
wesamplefasterthantwicethehighestsignalfrequencyasitwillavoidsaliasing.
The highest signal frequency allowed for a given sample rate is called the Nyquist frequency. Actually,
Nyquist says that we have to sample faster than the signal bandwidth, not the highest frequency. But
thisleadsusintomultiratesignalprocessingwhichisamoreadvancedsubject.Nyquistshowedthatto
distinguishunambiguouslybetweenallsignalfrequencieswe mustsampleatleasttwice thefrequency
ofthehighestfrequencycomponent.
Exercise:
Task#1:PlottwoCTsignalsof10Hzand110Hzfor0<t<0.2secs.SampleatFs=100Hzandplotthem
indiscreteform.
Task#2:ForaCTsignal:x(t)=sin(2piFot)whosesampledversionwillbe:x(n)=sin(2piFo/Fsn)
wherenisasetofintegersandsamplingintervalTs=1/Fs.
(a) Plotthesignalx(n)forn=0to99forFs=5kHzandFo=0.5,2,3and4.5kHz.Explain
thesimilaritiesanddifferencesamongvariousplots.
(b) SupposethatFo=2kHzandFs=50kHz.
a. Plotthesignalx(n).
b. Plot the signal y (n) created by taking the even numbered samples of x (n). Is
thisasinusoidalsignal?Whyorwhynot?Ifso,whatisthefrequency?