• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Advertise
  • Subscribe

Test & Measurement Tips

Oscilloscopes, electronics engineering industry news, how-to EE articles and electronics resources

  • Oscilloscopes
    • Analog Oscilloscope
    • Digital Oscilloscope
    • Handheld Oscilloscope
    • Mixed-signal Oscilloscope
    • PC-based Oscilloscopes – PCO
  • Design
  • Calibration
  • Meters & Testers
  • Test Equipment
  • Learn
    • eBooks/Tech Tips
    • FAQs
    • EE Training Days
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Video
    • EE Videos
    • Teardown Videos
  • Resources
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • Leap Awards
    • White Papers
  • Subscribe
You are here: Home / Featured / How to calculate and apply an inverse FFT: part 2

How to calculate and apply an inverse FFT: part 2

December 17, 2024 By Rick Nelson Leave a Comment

In part 1 of this series, we looked at the formula for the inverse discrete Fourier transform and manually calculated the inverse transform for a four-point dataset. Then, we used Excel’s implementation of the inverse fast Fourier transform (IFFT) to verify our work.

Could we try something more realistic?
Sure. We can take a signal from the time-domain world of oscilloscopes, transform it to the frequency domain world of spectrum analyzers, manipulate it in some fashion, and transform it back to the time domain. Figure 1 shows how to set up the spreadsheet for a dataset with N equals 512 data points—recall that Excel’s fast Fourier transform (FFT) engine requires that N be a power of 2. We put the sample number n in column A, extending from 0 in row 2 to 511 in row 513. We put the time in column B, ranging from 0 to 0.511 s in increments of 0.001 s, which is our sampling interval Δt. In column C, we enter the equation for our sinusoidal input to the FFT, which you can see in the formula bar.

IFFT in Excel
Figure 1. Enter the indicated formulas into row 2 and autofill through row 513.

You’ve chosen a frequency of 78.28 Hz. Why?
That frequency lets us fit an integer number of cycles into our 512-point sample space, to avoid spectral leakage, as discussed in part 3 of our earlier series on the Fourier transform. Part 3 also explained how to use windowing functions to minimize spectral leakage for datasets that do not contain an integer number of cycles, but I wanted to keep this example simple.

What’s our next step?
The FFT engine writes the complex FFT result into column D. Column E calculates the magnitude of the complex FFT using the =IMABS() function. Recall also that we need to multiply the magnitude by a scaling factor 2/N. Column F holds the frequency, against which we will plot the FFT magnitude. The frequency begins at zero, and each successive entry increments by an amount Δf:

For details on setting up columns A through F, see part 2 of our earlier series.

What about columns G through K?
Since we have our signal in the frequency domain, we can alter it before transforming it back to the time domain. Thus, column G divides our FFT result by 2. The column D entries are complex numbers, so we can’t simply use =D2/2. Instead, we use the =IMDIV() function. In column H we use =IMABS() again to calculate the magnitude so we can plot it.

Can we now calculate the complex IFFT of the column G values?
Right. As in part 1 of this series, we’ll select Data Analysis from the Data tab. Then select Fourier Analysis, and you’ll see the box shown in Figure 2. Follow the five steps in the figure, noting that the input range is G2 through G513 and the output range is I2 through I513. Make sure to check Inverse in the lower left corner and click OK. The FFT engine writes the complex IFFT into column I. We can then use the =IMREAL() and =IMAGINARY() functions to write the real and imaginary parts into columns J and K, respectively.

Fourier analysis in Excel
Figure 2. Follow steps 1 through 5 to initiate the IFFT.

Can we plot our results now?
Yes. In Figure 3 at the top, the blue sine wave represents our 78-Hz input with a normalized peak amplitude of 1. The blue trace on the bottom represents the real part of the FFT, with a peak of 1 at 78 Hz, and the red trace on the bottom is one-half the blue trace. When we apply the IFFT, we get the red sine wave on the top, with a peak amplitude of 0.5. The imaginary parts in column K are all zero, so only the real part (column J) is relevant for this example.

time and frequency
Figure 3. The FFT converts the blue time-domain signal (top) to the frequency domain (blue trace, bottom), where it is modified (red trace, bottom) and transformed back to the time domain (red signal, top).

It looks like we’ve found a complicated way to divide by two.
Right. But there are many applications — in signal synthesis, telecommunications, and image processing, for example — that require more complex signal manipulation in the frequency domain, followed by an IFFT to construct a time-domain signal. We’ll look at an example next time.

You may also like:


  • How to calculate and apply the inverse discrete Fourier transform:…

  • How to calculate and apply an inverse FFT: part 1

  • Why does the Fourier transform provide apparently inaccurate results, and…

  • Why does the Fourier transform provide apparently inaccurate results, and…

  • Why does the Fourier transform provide apparently inaccurate results, and…

  • Why does the Fourier Transform provide apparently inaccurate results, and…

Filed Under: Analyzer, FAQ, Featured, oscilloscope measurements, spectrum analyzer Tagged With: FAQ

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Featured Contributions

Why engineers need IC ESD and TLP data

Verify, test, and troubleshoot 5G Wi-Fi FWA gateways

How to build and manage a top-notch test team

How to use remote sensing for DC programmable power supplies

The factors of accurate measurements

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Test & Measurement
We’ve gathered articles that include hands-on product tryouts and reviews. Indeed, every article in this issue uses an oscilloscope in one way or another so you might just call this “The Oscilloscope Tech Toolbox.”

EE TRAINING CENTER

EE Learning Center
“test
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.
bills blog

RSS Current Electro-Tech-Online.com Discussions

  • My Advanced Realistic Humanoid Robots Project
  • Hitachi SuperScan Elite 802 CRT Monitor Issues (Model CM802U)
  • Sanity Check – Peltier "Cooler" for Heating and Cooling
  • Funny Images Thread!
  • I am ready to move from electrical and electronics field but confused where ?

Footer

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips

Test & Measurement Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy