Using MATLAB to Illustrate the 'Phenomenon of Aliasing' Sol Neeman, Ph.D

Total Page:16

File Type:pdf, Size:1020Kb

Using MATLAB to Illustrate the 'Phenomenon of Aliasing' Sol Neeman, Ph.D Johnson & Wales University ScholarsArchive@JWU Engineering Studies Faculty Publications and College of Engineering & Design Creative Works 1995 Using MATLAB to Illustrate the 'Phenomenon of Aliasing' Sol Neeman, Ph.D. Johnson & Wales University - Providence, [email protected] Follow this and additional works at: https://scholarsarchive.jwu.edu/engineering_fac Part of the Computer Engineering Commons, Electrical and Computer Engineering Commons, Engineering Science and Materials Commons, Mechanical Engineering Commons, Operations Research, Systems Engineering and Industrial Engineering Commons, and the Other Engineering Commons Repository Citation Neeman,, Sol Ph.D., "Using MATLAB to Illustrate the 'Phenomenon of Aliasing'" (1995). Engineering Studies Faculty Publications and Creative Works. 8. https://scholarsarchive.jwu.edu/engineering_fac/8 This Conference Proceeding is brought to you for free and open access by the College of Engineering & Design at ScholarsArchive@JWU. It has been accepted for inclusion in Engineering Studies Faculty Publications and Creative Works by an authorized administrator of ScholarsArchive@JWU. For more information, please contact [email protected]. Session 1620 USING MATLAB TO ILLUSTRATE THE' PHENOMENON OF ALIASING Sol Neeman Johnson and Wales University Abstract n. > 2 · nn The phenomenon of aliasing is important when sam­ (the frequency 2 . nn is called the Nyquist sampling pling analog signals. In cases where the signal is ban­ rate) dlimited, one can avoid aliasing by ensuring that the If this condition is not satisfied, aliasing will occur, re­ sampling rate is higher than the Nyquist rate. But in sulting in distortion in the reconstructed signal from its cases where the signal is not bandlimited, aliasing is un­ samples. When signals are not bandlimited, anti aliasing avoidable if the signal is not filtered before it is sampled. filters can be used to minimize the effect by attenuating It is then crucial to understand the phenomenon in order the undesired high frequency components. In addition, to estimate the distortion generated when the signal is wideband additive noise may fill in the high frequency reconstructed from its samples. Using the software pack­ range and then be aliased into the lower frequency range. age MATLAB by MathWorks, Inc., two examples are In order to evaluate quantitatively the distortion in the presented. The first is a pure sinusoid which is sampled reconstructed signal, it is necessary to understand why at both higher and lower than the Nyquist rate, and the the high frequency components are aliased into the lower frequency spectrum of both sampled sinusoids are com­ range. pared to illustrate the effect of aliasing. The second and more interesting case is a square wave which has an un­ limited bandwidth. The square wave is a periodic wave Why and how Aliasiug Occurs that has Fourier expansion with odd harmonics only, the amplitudes of which drop as lin. A square wave is To get an insight into this phenomenon, we analyze synthesized using MATLAB and its Fourier transform the Fourier transform of the sampled signal and compare is presented graphically (The synthesized square wave it to the Fourier transform of the analog (continuous) inherently produces aliased components). The odd har­ signal[lj: monics and the aliased components seen on the graph Let xa(t) represent an analog signal with the highest are analyzed and compared to the predicted theoretical frequency component at nn, and set) represent a peri­ results. Graphs generated by MATLAB accompany the odic impulse train, with a period T , that is: analysis for both signals. set) = L 8(t - nT) Introduction n where 8(t) is the unit impulse function. If Xa(t) is Physical signals in nature are continuous, both in time sampled at a period T , the sampled signal, xs (t) , can be and in amplitude. On digital computers, they can be represented as the product of the two, that is : represented by finite sequences with finite precision. To do this, the signal has to be sampled and the ampli­ Xs(t) xa(t) . set) xa(t) . 8(t - nT) tude of the samples be approximated by a finite number = = L n of bits (quantization of the signal). Nyquist theorem states that the analog signal can be reconstructed from Since multiplication in the time domain translates its samples, provided the sampling rate is greater than into convolution in the frequency domain, the relation­ twice the highest frequency component in the analog ship between the Fourier transforms of the three func­ signal. Thus if the highest frequency component is nn tions is given by: (called the Nyquist frequency), the sampling frequency, n., has to satisfy: x.un) = 2l7l'XaUn) * Sun) 1995 ASEE Annual Conference Proceedings 612 where n represents analog frequency. The Fourier versions of a group of pure sinusoids[21. Consider the transform of s(t), the periodic impulse train, is a pe­ continuous sinusoid of frequency Wo : riodic impulse train in the frequency domain, that is: x(t) = sin(wo' t) sun) = :; L 8(n - k ;7r) = :; L 8(n - kn.) When sampled at a sampling period T, the resulting k k sampled sequence is: Carrying out the convolution in the previous equation, results in: x(n) = sin(wo . n· T) for n=0,±1,±2, ... Now consider the group of sinusoids of frequency w, where: This equation states that the Fourier transform of the sampled signal is a superposition of infinitely many shifted copies of Xaun), resulting in repeated copies 27rk for k = 0, ±l, ±2, ... of Xa un) in integer multiples of n., in both direc­ w=wo+ T tion of the frequency axis. If the sampling rate is not greater than twice the Nyquist frequency, the copies, When sampled at a sampling period T, any sinusoid: when superimposed, will overlap and higher frequ~ncies will be aliased into the lower frequency range; therefore y(t) = sin[(wo + 2;k) . tj we would not be able to reconstruct the original signal from its samples by the use of a filter. On the other from this group, will result in a sequence which is hand if the sampling rate is satisfied, no overlapping of identical to the sampled sequence of frequency woo To the copies will happen and with the appropriate filter see that, we observe: it is possible to reconstruct the original signal from its samples. y(n) = sin[(wo + 2;k) . nT] Fig. 1 represents the Fourier transform of xa(t) and =sin[(wo . nT + 27rkn)] x s (t) and the two cases described above. = sin[wo . nT] ~.\'.( j ll l Thus x(t) and any ofthe sinusoids represented by y(t) , , \I cannot be distinguished when sampled at a sampling -IlN Us period T. Note that Wo is considered in tandem with S(j\1) j ¥t -wo ° t t t ): U - 1· 11., - II., lis :!. · lls Bin# and Actual Frequency No ",Iia.s ill~ : 0 ,,; > 2· fiN Relationship in FFT Computation When a sampled signal, x$(t) is represented by a - fls . sequence x(n), the Fourier transform of the sequence, X(eiw ), is a frequency scaled version of x.(jn) with the scaling w = nT. Thus the analog frequency n = n. (where n .. = 27r/T ), is normalized to w = 27r. The FFT of a sequence of length N, produces N points (re­ ferred to as bin # 's). In MATLAB, the first N/2 + 1 - Os -fix n,\' Po ... points correspond to the frequency range DC to 1./2 (Nyquist frequency). The rest of the points correspond Fig.1 Fourier Transform of an analog signal, xa(t) to negative frequencies (which will be truncated in . the and its sampled form, x.(t). following examples). Aliasing can also be demonstrated in a simpler way, Thus, to translate the values of the bin #'s to the when we analyze the relationship between the sampled actual frequency f , we use the equation: ~i 1995 ASEE Annual Conference Proceedings 1",IIoO\O'l' 613 • Hz 1, the first frequency vector, runs from DC to 1, OOOH z. f = (bin# -1)· fs/N H z2, the second frequency vector, runs from DC to 500Hz. The next lines are the commands in MA TLAB needed Graphing FFT Values Versus the to produce both sequences, compute their FFT and plot Actual Frequency, in Hz[3,41 the results [31: To graph the FFT values Of a signal versus the actual t1=0:.0005:.5115; frequency in Hz rather than versus the bin #, we have Hz 1=(2000/2)*(0: 1024/2) / (lO24/2); to generate a frequency vector of length N /2 1, evenly + xl=sin(2*pi*550*tl ); spaced, which represents the frequency range: DC to Xl=abs(fft(xl fs/2 . For example, let X(n) represent N points FFT »; Xl(514:1024)=[ ]; with N even and a sampling frequency fs ; In MATLAB, subplot(211) ; we can produce a frequency vector Hz via: plot( tl( 1:64),xl(1 :64)); subplot(212); Hz = Us/2) * (0: N/2)/(N/2); plot(Hz 1 ,Xl); Since X (n) is of length N and we need only the first (Fig. 2 shows MATLAB plots for xl and Xl) N /2 + 1 elements, we have to truncate the portion that corresponds to negative frequencies. This is done via: t2=0:.00l:1.023; Hz2=( 1000/2)*(0: 1024/2) / (lO24/2); X(N/2 +2 : N) = []; x2=sin( 2*pi * 550*t2); X2=abs(fft(x2)); Then we can plot IX (n) I versus Hz. X2(514:1024)=[ ]; subplot(21l); plot( t2(1 :256),x2( 1:256)); Aliasing When Undel'sampling a pure sinusoid subplot(212); plot(Hz2,X2); To illustrate aliasing when a pure sinusoid is undersam­ (Fig. 3 shows MATLAB plots for x2 and X2) pled, we use MATLAB to synthesize a sinusoid of fre­ quency 550Hz, then represent it by two sequences: -_.
Recommended publications
  • Detection and Estimation Theory Introduction to ECE 531 Mojtaba Soltanalian- UIC the Course
    Detection and Estimation Theory Introduction to ECE 531 Mojtaba Soltanalian- UIC The course Lectures are given Tuesdays and Thursdays, 2:00-3:15pm Office hours: Thursdays 3:45-5:00pm, SEO 1031 Instructor: Prof. Mojtaba Soltanalian office: SEO 1031 email: [email protected] web: http://msol.people.uic.edu/ The course Course webpage: http://msol.people.uic.edu/ECE531 Textbook(s): * Fundamentals of Statistical Signal Processing, Volume 1: Estimation Theory, by Steven M. Kay, Prentice Hall, 1993, and (possibly) * Fundamentals of Statistical Signal Processing, Volume 2: Detection Theory, by Steven M. Kay, Prentice Hall 1998, available in hard copy form at the UIC Bookstore. The course Style: /Graduate Course with Active Participation/ Introduction Let’s start with a radar example! Introduction> Radar Example QUIZ Introduction> Radar Example You can actually explain it in ten seconds! Introduction> Radar Example Applications in Transportation, Defense, Medical Imaging, Life Sciences, Weather Prediction, Tracking & Localization Introduction> Radar Example The strongest signals leaking off our planet are radar transmissions, not television or radio. The most powerful radars, such as the one mounted on the Arecibo telescope (used to study the ionosphere and map asteroids) could be detected with a similarly sized antenna at a distance of nearly 1,000 light-years. - Seth Shostak, SETI Introduction> Estimation Traditionally discussed in STATISTICS. Estimation in Signal Processing: Digital Computers ADC/DAC (Sampling) Signal/Information Processing Introduction> Estimation The primary focus is on obtaining optimal estimation algorithms that may be implemented on a digital computer. We will work on digital signals/datasets which are typically samples of a continuous-time waveform.
    [Show full text]
  • Z-Transformation - I
    Digital signal processing: Lecture 5 z-transformation - I Produced by Qiangfu Zhao (Since 1995), All rights reserved © DSP-Lec05/1 Review of last lecture • Fourier transform & inverse Fourier transform: – Time domain & Frequency domain representations • Understand the “true face” (latent factor) of some physical phenomenon. – Key points: • Definition of Fourier transformation. • Definition of inverse Fourier transformation. • Condition for a signal to have FT. Produced by Qiangfu Zhao (Since 1995), All rights reserved © DSP-Lec05/2 Review of last lecture • The sampling theorem – If the highest frequency component contained in an analog signal is f0, the sampling frequency (the Nyquist rate) should be 2xf0 at least. • Frequency response of an LTI system: – The Fourier transformation of the impulse response – Physical meaning: frequency components to keep (~1) and those to remove (~0). – Theoretic foundation: Convolution theorem. Produced by Qiangfu Zhao (Since 1995), All rights reserved © DSP-Lec05/3 Topics of this lecture Chapter 6 of the textbook • The z-transformation. • z-変換 • Convergence region of z- • z-変換の収束領域 transform. -変換とフーリエ変換 • Relation between z- • z transform and Fourier • z-変換と差分方程式 transform. • 伝達関数 or システム • Relation between z- 関数 transform and difference equation. • Transfer function (system function). Produced by Qiangfu Zhao (Since 1995), All rights reserved © DSP-Lec05/4 z-transformation(z-変換) • Laplace transformation is important for analyzing analog signal/systems. • z-transformation is important for analyzing discrete signal/systems. • For a given signal x(n), its z-transformation is defined by ∞ Z[x(n)] = X (z) = ∑ x(n)z−n (6.3) n=0 where z is a complex variable. Produced by Qiangfu Zhao (Since 1995), All rights reserved © DSP-Lec05/5 One-sided z-transform and two-sided z-transform • The z-transform defined above is called one- sided z-transform (片側z-変換).
    [Show full text]
  • Basics on Digital Signal Processing
    Basics on Digital Signal Processing z - transform - Digital Filters Vassilis Anastassopoulos Electronics Laboratory, Physics Department, University of Patras Outline of the Lecture 1. The z-transform 2. Properties 3. Examples 4. Digital filters 5. Design of IIR and FIR filters 6. Linear phase 2/31 z-Transform 2 N 1 N 1 j nk n X (k) x(n) e N X (z) x(n) z n0 n0 Time to frequency Time to z-domain (complex) Transformation tool is the Transformation tool is complex wave z e j e j j j2k / N e e With amplitude ρ changing(?) with time With amplitude |ejω|=1 The z-transform is more general than the DFT 3/31 z-Transform For z=ejω i.e. ρ=1 we work on the N 1 unit circle X (z) x(n) z n And the z-transform degenerates n0 into the Fourier transform. I -z z=R+jI |z|=1 R The DFT is an expression of the z-transform on the unit circle. The quantity X(z) must exist with finite value on the unit circle i.e. must posses spectrum with which we can describe a signal or a system. 4/31 z-Transform convergence We are interested in those values of z for which X(z) converges. This region should contain the unit circle. I Why is it so? |a| N 1 N 1 X (z) x(n) zn x(n) (1/zn ) n0 n0 R At z=0, X(z) diverges ROC The values of z for which X(z) diverges are called poles of X(z).
    [Show full text]
  • 3F3 – Digital Signal Processing (DSP)
    3F3 – Digital Signal Processing (DSP) Simon Godsill www-sigproc.eng.cam.ac.uk/~sjg/teaching/3F3 Course Overview • 11 Lectures • Topics: – Digital Signal Processing – DFT, FFT – Digital Filters – Filter Design – Filter Implementation – Random signals – Optimal Filtering – Signal Modelling • Books: – J.G. Proakis and D.G. Manolakis, Digital Signal Processing 3rd edition, Prentice-Hall. – Statistical digital signal processing and modeling -Monson H. Hayes –Wiley • Some material adapted from courses by Dr. Malcolm Macleod, Prof. Peter Rayner and Dr. Arnaud Doucet Digital Signal Processing - Introduction • Digital signal processing (DSP) is the generic term for techniques such as filtering or spectrum analysis applied to digitally sampled signals. • Recall from 1B Signal and Data Analysis that the procedure is as shown below: • is the sampling period • is the sampling frequency • Recall also that low-pass anti-aliasing filters must be applied before A/D and D/A conversion in order to remove distortion from frequency components higher than Hz (see later for revision of this). • Digital signals are signals which are sampled in time (“discrete time”) and quantised. • Mathematical analysis of inherently digital signals (e.g. sunspot data, tide data) was developed by Gauss (1800), Schuster (1896) and many others since. • Electronic digital signal processing (DSP) was first extensively applied in geophysics (for oil-exploration) then military applications, and is now fundamental to communications, mobile devices, broadcasting, and most applications of signal and image processing. There are many advantages in carrying out digital rather than analogue processing; among these are flexibility and repeatability. The flexibility stems from the fact that system parameters are simply numbers stored in the processor.
    [Show full text]
  • CONVOLUTION: Digital Signal Processing .R .Hamming, W
    CONVOLUTION: Digital Signal Processing AN-237 National Semiconductor CONVOLUTION: Digital Application Note 237 Signal Processing January 1980 Introduction As digital signal processing continues to emerge as a major Decreasing the pulse width while increasing the pulse discipline in the field of electrical engineering, an even height to allow the area under the pulse to remain constant, greater demand has evolved to understand the basic theo- Figure 1c, shows from eq(1) and eq(2) the bandwidth or retical concepts involved in the development of varied and spectral-frequency content of the pulse to have increased, diverse signal processing systems. The most fundamental Figure 1d. concepts employed are (not necessarily listed in the order Further altering the pulse to that of Figure 1e provides for an [ ] of importance) the sampling theorem 1 , Fourier transforms even broader bandwidth, Figure 1f. If the pulse is finally al- [ ][] 2 3, convolution, covariance, etc. tered to the limit, i.e., the pulsewidth being infinitely narrow The intent of this article will be to address the concept of and its amplitude adjusted to still maintain an area of unity convolution and to present it in an introductory manner under the pulse, it is found in 1g and 1h the unit impulse hopefully easily understood by those entering the field of produces a constant, or ``flat'' spectrum equal to 1 at all digital signal processing. frequencies. Note that if ATe1 (unit area), we get, by defini- It may be appropriate to note that this article is Part II (Part I tion, the unit impulse function in time.
    [Show full text]
  • The Scientist and Engineer's Guide to Digital Signal Processing Properties of Convolution
    CHAPTER 7 Properties of Convolution A linear system's characteristics are completely specified by the system's impulse response, as governed by the mathematics of convolution. This is the basis of many signal processing techniques. For example: Digital filters are created by designing an appropriate impulse response. Enemy aircraft are detected with radar by analyzing a measured impulse response. Echo suppression in long distance telephone calls is accomplished by creating an impulse response that counteracts the impulse response of the reverberation. The list goes on and on. This chapter expands on the properties and usage of convolution in several areas. First, several common impulse responses are discussed. Second, methods are presented for dealing with cascade and parallel combinations of linear systems. Third, the technique of correlation is introduced. Fourth, a nasty problem with convolution is examined, the computation time can be unacceptably long using conventional algorithms and computers. Common Impulse Responses Delta Function The simplest impulse response is nothing more that a delta function, as shown in Fig. 7-1a. That is, an impulse on the input produces an identical impulse on the output. This means that all signals are passed through the system without change. Convolving any signal with a delta function results in exactly the same signal. Mathematically, this is written: EQUATION 7-1 The delta function is the identity for ( ' convolution. Any signal convolved with x[n] *[n] x[n] a delta function is left unchanged. This property makes the delta function the identity for convolution. This is analogous to zero being the identity for addition (a%0 ' a), and one being the identity for multiplication (a×1 ' a).
    [Show full text]
  • Exploring Anti-Aliasing Filters in Signal Conditioners for Mixed-Signal, Multimodal Sensor Conditioning by Arun T
    Texas Instruments Incorporated Amplifiers: Op Amps Exploring anti-aliasing filters in signal conditioners for mixed-signal, multimodal sensor conditioning By Arun T. Vemuri Systems Architect, Enhanced Industrial Introduction Figure 1. Multimodal, mixed-signal sensor-signal conditioner Some sensor-signal conditioners are used to process the output Analog Digital of multiple sense elements. This Domain Domain processing is often provided by multimodal, mixed-signal condi- tioners that can handle the out- puts from several sense elements Sense Digital Amplifier 1 ADC 1 at the same time. This article Element 1 Filter 1 analyzes the operation of anti- Processed aliasing filters in such sensor- Intelligent Output Compensation signal conditioners. Sense Digital Basics of sensor-signal Amplifier 2 ADC 2 Element 2 Filter 2 conditioners Sense elements, or transducers, convert a physical quantity of interest into electrical signals. Examples include piezo resistive bridges used to measure pres- sure, piezoelectric transducers used to detect ultrasonic than one sense element is processed by the same signal waves, and electrochemical cells used to measure gas conditioner is called multimodal signal conditioning. concentrations. The electrical signals produced by sense Mixed-signal signal conditioning elements are small and exhibit nonidealities, such as tem- Another aspect of sensor-signal conditioning is the electri- perature drifts and nonlinear transfer functions. cal domain in which the signal conditioning occurs. TI’s Sensor analog front ends such as the Texas Instruments PGA309 is an example of a device where the signal condi- (TI) LMP91000 and sensor-signal conditioners such as TI’s tioning of resistive-bridge sense elements occurs in the PGA400/450 are used to amplify the small signals produced analog domain.
    [Show full text]
  • Digital Signal Processing: Theory and Practice, Hardware and Software
    AC 2009-959: DIGITAL SIGNAL PROCESSING: THEORY AND PRACTICE, HARDWARE AND SOFTWARE Wei PAN, Idaho State University Wei Pan is Assistant Professor and Director of VLSI Laboratory, Electrical Engineering Department, Idaho State University. She has several years of industrial experience including Siemens (project engineering/management.) Dr. Pan is an active member of ASEE and IEEE and serves on the membership committee of the IEEE Education Society. S. Hossein Mousavinezhad, Idaho State University S. Hossein Mousavinezhad is Professor and Chair, Electrical Engineering Department, Idaho State University. Dr. Mousavinezhad is active in ASEE and IEEE and is an ABET program evaluator. Hossein is the founding general chair of the IEEE International Conferences on Electro Information Technology. Kenyon Hart, Idaho State University Kenyon Hart is Specialist Engineer and Associate Lecturer, Electrical Engineering Department, Idaho State University, Pocatello, Idaho. Page 14.491.1 Page © American Society for Engineering Education, 2009 Digital Signal Processing, Theory/Practice, HW/SW Abstract Digital Signal Processing (DSP) is a course offered by many Electrical and Computer Engineering (ECE) programs. In our school we offer a senior-level, first-year graduate course with both lecture and laboratory sections. Our experience has shown that some students consider the subject matter to be too theoretical, relying heavily on mathematical concepts and abstraction. There are several visible applications of DSP including: cellular communication systems, digital image processing and biomedical signal processing. Authors have incorporated many examples utilizing software packages including MATLAB/MATHCAD in the course and also used classroom demonstrations to help students visualize some difficult (but important) concepts such as digital filters and their design, various signal transformations, convolution, difference equations modeling, signals/systems classifications and power spectral estimation as well as optimal filters.
    [Show full text]
  • ELEG 5173L Digital Signal Processing Ch. 3 Discrete-Time Fourier Transform
    Department of Electrical Engineering University of Arkansas ELEG 5173L Digital Signal Processing Ch. 3 Discrete-Time Fourier Transform Dr. Jingxian Wu [email protected] 2 OUTLINE • The Discrete-Time Fourier Transform (DTFT) • Properties • DTFT of Sampled Signals • Upsampling and downsampling 3 DTFT • Discrete-time Fourier Transform (DTFT) X () x(n)e jn n – (radians): digital frequency • Review: Z-transform: X (z) x(n)zn n0 j X () X (z) | j – Replace z with e . ze • Review: Fourier transform: X () x(t)e jt – (rads/sec): analog frequency 4 DTFT • Relationship between DTFT and Fourier Transform – Sample a continuous time signal x a ( t ) with a sampling period T xs (t) xa (t) (t nT ) xa (nT ) (t nT ) n n – The Fourier Transform of ys (t) jt jnT X s () xs (t)e dt xa (nT)e n – Define: T • : digital frequency (unit: radians) • : analog frequency (unit: radians/sec) – Let x(n) xa (nT) X () X s T 5 DTFT • Relationship between DTFT and Fourier Transform (Cont’d) – The DTFT can be considered as the scaled version of the Fourier transform of the sampled continuous-time signal jt jnT X s () xs (t)e dt xa (nT)e n x(n) x (nT) T a jn X () X s x(n)e T n 6 DTFT • Discrete Frequency – Unit: radians (the unit of continuous frequency is radians/sec) – X ( ) is a periodic function with period 2 j2 n jn j2n jn X ( 2 ) x(n)e x(n)e e x(n)e X () n n n – We only need to consider for • For Fourier transform, we need to consider 1 – f T 2 2T 1 – f T 2 2T 7 DTFT • Example: find the DTFT of the following signal – 1.
    [Show full text]
  • Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform Foundations of Digital Signal Processing
    Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform Foundations of Digital Signal Processing Outline • Review of Sampling • The Nyquist-Shannon Sampling Theorem • Continuous-time Reconstruction / Interpolation • Aliasing and anti-Aliasing • Deriving Transforms from the Fourier Transform • Discrete-time Fourier Transform, Fourier Series, Discrete-time Fourier Series • The Discrete Fourier Transform Foundations of Digital Signal Processing Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform 1 News Homework #5 . Due this week . Submit via canvas Coding Problem #4 . Due this week . Submit via canvas Foundations of Digital Signal Processing Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform 2 Exam 1 Grades The class did exceedingly well . Mean: 89.3 . Median: 91.5 Foundations of Digital Signal Processing Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform 3 Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform Foundations of Digital Signal Processing Outline • Review of Sampling • The Nyquist-Shannon Sampling Theorem • Continuous-time Reconstruction / Interpolation • Aliasing and anti-Aliasing • Deriving Transforms from the Fourier Transform • Discrete-time Fourier Transform, Fourier Series, Discrete-time Fourier Series • The Discrete Fourier Transform Foundations of Digital Signal Processing Lecture 12: Sampling, Aliasing, and the Discrete Fourier Transform 4 Sampling Discrete-Time Fourier Transform Foundations of Digital Signal Processing Lecture 12: Sampling, Aliasing,
    [Show full text]
  • MULTIRATE SIGNAL PROCESSING Multirate Signal Processing
    MULTIRATE SIGNAL PROCESSING Multirate Signal Processing • Definition: Signal processing which uses more than one sampling rate to perform operations • Upsampling increases the sampling rate • Downsampling reduces the sampling rate • Reference: Digital Signal Processing, DeFatta, Lucas, and Hodgkiss B. Baas, EEC 281 431 Multirate Signal Processing • Advantages of lower sample rates –May require less processing –Likely to reduce power dissipation, P = CV2 f, where f is frequently directly proportional to the sample rate –Likely to require less storage • Advantages of higher sample rates –May simplify computation –May simplify surrounding analog and RF circuitry • Remember that information up to a frequency f requires a sampling rate of at least 2f. This is the Nyquist sampling rate. –Or we can equivalently say the Nyquist sampling rate is ½ the sampling frequency, fs B. Baas, EEC 281 432 Upsampling Upsampling or Interpolation •For an upsampling by a factor of I, add I‐1 zeros between samples in the original sequence •An upsampling by a factor I is commonly written I For example, upsampling by two: 2 • Obviously the number of samples will approximately double after 2 •Note that if the sampling frequency doubles after an upsampling by two, that t the original sample sequence will occur at the same points in time t B. Baas, EEC 281 434 Original Signal Spectrum •Example signal with most energy near DC •Notice 5 spectral “bumps” between large signal “bumps” B. Baas, EEC 281 π 2π435 Upsampled Signal (Time) •One zero is inserted between the original samples for 2x upsampling B. Baas, EEC 281 436 Upsampled Signal Spectrum (Frequency) • Spectrum of 2x upsampled signal •Notice the location of the (now somewhat compressed) five “bumps” on each side of π B.
    [Show full text]
  • ESE 531: Digital Signal Processing Lecture Outline ADC Anti-Aliasing
    Lecture Outline ESE 531: Digital Signal Processing ! Data Converters " Anti-aliasing " ADC Lec 12: February 21st, 2017 " Quantization Data Converters, Noise Shaping (con’t) " Practical DAC ! Noise Shaping Penn ESE 531 Spring 2017 - Khanna Penn ESE 531 Spring 2017 - Khanna 2 Anti-Aliasing Filter with ADC ADC Penn ESE 531 Spring 2017 - Khanna 3 Penn ESE 531 Spring 2017 - Khanna 4 Oversampled ADC Oversampled ADC Penn ESE 531 Spring 2017 - Khanna 5 Penn ESE 531 Spring 2017 - Khanna 6 1 Oversampled ADC Oversampled ADC Penn ESE 531 Spring 2017 - Khanna 7 Penn ESE 531 Spring 2017 - Khanna 8 Sampling and Quantization Sampling and Quantization Penn ESE 531 Spring 2017 - Khanna 9 Penn ESE 531 Spring 2017 - Khanna 10 Effect of Quantization Error on Signal Quantization Error ! Quantization error is a deterministic function of the signal " Consequently, the effect of quantization strongly depends on the ! signal itself Model quantization error as noise ! Unless, we consider fairly trivial signals, a deterministic analysis is usually impractical " More common to look at errors from a statistical perspective " "Quantization noise” ! In that case: ! Two aspects " How much noise power (variance) does quantization add to our samples? " How is this noise distributed in frequency? Penn ESE 531 Spring 2017 - Khanna 11 Penn ESE 531 Spring 2017 - Khanna 12 2 Ideal Quantizer Ideal B-bit Quantizer ! Practical quantizers have a limited input range and a finite set of output codes ! Δ Quantization step ! E.g. a 3-bit quantizer can map onto 3 ! Quantization error
    [Show full text]