Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8722391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:24:26+00:00 2026-06-13T07:24:26+00:00

I am using fftw for FFTing a signal which has a sampling rate (changes

  • 0

I am using fftw for FFTing a signal which has a sampling rate (changes every time I get a new sample) around 10+-0.05Hz. My input signal has 200 samples. I am getting an output of 100 complex nos. Now to get the resolution for my fft and get a frequency corresponding to evry bin I use this:

sampFreq = (float)numFrames*1000000/diffT;
a=sampFreq/numFrames;           //freq resolution of each fft bin
b=a/2;
freq = a*index + b;            // where index is the index of output bin

numFrames is my initial input size to fft (200) and not the output size. Am I doing it correct or missing a factor of 2?
Also do I need to use Windowing for this case (as in sampling at ~10Hz and 200 frames)

Also please note I am not zero padding my signal as fftw documentation says the sampels can be a multiple of smaller primes, not necessarily only 2, so 200 works I guess.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:24:27+00:00Added an answer on June 13, 2026 at 7:24 am

    Yes, you need to use a window function prior to the FFT, otherwise you will suffer with spectral leakage (your spectrum will be smeared).

    The resolution of your spectrum is just Fs / N = 10 / 200 = 0.05 Hz, so your 100 point spectrum represents frequencies from 0 Hz (DC) to 5.0 Hz (Nyquist) with each “bin” having a width of 0.05 Hz.

    Note that the jitter in your sample rate will have a somewhat unpredictable effect on the resulting spectrum – at the very least it will be somewhat inaccurate, and the resolution will probably suffer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using android 2.3.3, I have a background Service which has a socket connection. There's
I'm doing some tests with FFTW using threads, the time of 1d transform(forward and
I'm using the threaded version of FFTW (a FFT library) to try to speed
Using CI for the first time and i'm smashing my head with this seemingly
Using the Redis info command, I am able to get all the stats of
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using import datetime in python, is it possible to take a formatted time/date string
Using Code First Entity Framework with .NET MVC 4 I have created a new
Using MVC2 I have an AJAX form which is posting to a bound model.
Using Delphi 2010. I am looking for (possibly) a function or procedure which can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.