Questions tagged [fft]

The fast Fourier transform is an efficient algorithm to compute the discrete Fourier transform (DFT) and its inverse.

0
votes
2answers
85 views

Shifting signal smaller than discrete step

I have a image that I need to shift with less than a pixel. My plan was to do a Fourier transform and multiply the signal with $e^{-aiu-biv}$ where $a, b$ are the shifts in x and y direction. This ...
1
vote
0answers
54 views

dsPIC33E ADC to FFT help

I am sampling an audio range signal with a bandwidth of 3100Hz and then applying a FFT using the DSP library example from Microchip to determine the most dominant frequency of the signal. On the last ...
1
vote
2answers
173 views

Why is my DFT/FFT always 90° out of phase?

I'm doing an FFT using Python and Numpy on one machine, and C# on another. I'm using some dummy data that mimics how I'll eventually be gathering data from sensors in the C#/UWP application. The two ...
1
vote
1answer
119 views

Damped sinusoidal form FFT of signal

I'm doing an assignment for the course Signal analysis where I have to analyse a signal. I've tried quite some things now but it's still bothering me that the FFT is looking weird, and not looks like ...
3
votes
1answer
92 views

FFT of a $N$-length real sequence via FFT of a N/2-length complex sequence

I would like to optimise FFT algorithm by only using a FFT of size $N/2$ to transform a real sequence of length $N$. There are already many questions and many excellent answers on the matter (here for ...
-1
votes
2answers
71 views

Attenuate frequency bin in FFT array resulting in artifacts [duplicate]

Am trying to remove noise for certain frequency bands by attenuating freqeuncy bins in the FFT array. However this results in artifacts to be formed, where there are clicking sounds in between each ...
0
votes
2answers
122 views

How to determine the original size of the FFT used in unknown OFDM symbol

Given an unknown OFDM symbol consisting of 9144 samples, interested to know the size of the FFT used in the TX/Number of bins. Down-sampling to 512,256,128,64,32 yields the following. Do not see how ...
0
votes
1answer
148 views

If my sampling rate is not high enough to capture all frequencies, can I accurately capture low frequencies?

Let us say that my sampling rate is 1000 Hz. This enables me to accurately capture every frequency in the 0-500 Hz range according to the Sampling Theorem using a DFT. However, there are higher ...
1
vote
1answer
309 views

Two voice pronunciation comparison similarity MFCC + DTW

Calculate each MFCC to compare wave file A and wave file B, and then use FastDTW to measure the distance after two sets of MFCCs. We compared the four wave files and obtained the Euclidean distance ...
0
votes
1answer
266 views

What is the proper way to implement a real time spectrogram?

I am trying to implement a real time spectrogram and I am not sure that I am implementing it the right way. First I decided to use Matlab, I was taking a short recording of lets say 0.1 seconds and ...
1
vote
1answer
56 views

Break a signal into segments, add them together and then perform an FFT on the result

If you break a 4 second signal into 0.5 second segments, add them together and then perform an FFT on the resultant 0.5 second data. Will the FFT / frequency spectrum be the simlar to an FFT on the ...
0
votes
1answer
54 views

frequencies in sound: multiple possibilities?

First, I am by no mean a sound engineer (as you will guess later). I was just wondering something while looking at the waveform of a .wav for a given shape of waveform on a duration of 2 sec for ...
1
vote
1answer
89 views

Is sparse signal in time domain is sparse in Frequency domain

In OFDM system, if we have a multi-path environment, we supposed to have a sparse received signal in time domain, then $FFT$ is performed to convert it into frequency domain. My question, does the ...
0
votes
1answer
75 views

Defining frequency axis for periodogram

I am trying to simulate example 8.2.2 from Hayes, Statistical Digital Signal Processing and Modelling, on MATLAB. Let $x(n)$ be a WSS process consisting of random phase sinusoid in unit variance. $$ ...
2
votes
2answers
71 views

How do MATLAB and/or Python treat $2^n$ samples rule in FFT

As far as I have read, an FFT requires that the number of original data points must be a power of 2. I'm wondering whether the tools like MATLAB or Python which have FFT functions take care of this ...
1
vote
0answers
52 views

Can Reassigned-STFT be an invertible transform? Algorithm for “Signal => Reassigned-STFT => masking => Reassigned-ISTFT => Output signal”

It is well known in DSP that this is a successful method to modify audio signals: Signal => STFT => masking => ISTFT => Output signal For example, ...
2
votes
1answer
137 views

What is about the circular convolution in OFDM

In an OFDM system, serial-to-parallel conversion for data is done, then the DFT is performed and then adding the cyclic prefix (CP). My question is related to that step of adding a CP. As I know, ...
2
votes
1answer
120 views

Separate two sinusoids with very close frequencies (5 Hz difference) in a 44.1 Khz audio signal, with good time-domain resolution [closed]

Here is an audio signal which is a mix of (WAV file available here): a 2000 Hz sinusoid, beginning at 1.00 sec, without fade-in/fade-out a 2005 Hz sinusoid, beginning at 1.031 sec, with a slow fade-...
1
vote
1answer
77 views

Time signal FFT different for whole signal than half signal on high frequencies

I have a time signal of u from 0 to 1000 time units. If I chop the signal in two halves and compare the frequency spectrum of both it looks similar, as it should (...
1
vote
0answers
17 views

artifact identification in irregular-samped data

There is a dataset combined by different datasets a,b,c,d,e. The time intervals are irregular(i1, i2, i3:intervals between a and b, b and c...), but the sampling rate SR in every single dataset is the ...
0
votes
1answer
158 views

Phase shift problem in Fast Fourier Transform

I try to make graph/print for magnitudes and phase shifts for impulse response calculated by FFT. For magnitude everything works perfect, but for phase shift I get some strange curve for higher ...
1
vote
1answer
379 views

Why am I seeing a negative frequency on FFT graph in Gnu Radio Companion? [closed]

I have a pretty simple flow here in GRC, but for some reason I'm seeing a negative frequency mirroring the 10khz signal that I'm generating. What's causing this negative frequency to show up in the ...
2
votes
0answers
120 views

Frequency translation with FFT

I'm new to DSP and I would like to make an SDR receiver. For this I want to shift bins in the frequency domain in order to bring to 0Hz any portion of the base band spectrum (I know that there are ...
1
vote
0answers
384 views

Remove a line in image with FFT

I would like to remove vertical line from an image (an example). I took a 2D FFT and try to apply a mask to suppress the line. Nonethelesse the approch is not very efficient, because i lose an ...
1
vote
1answer
248 views

Reconstruction of a signal from non-uniform samples [duplicate]

So I'm having some troubles with a signal that's been sampled but where the samples don't have consistent intervals. I've been looking into the NFFT (in python) as a starting point but I'm a complete ...
1
vote
1answer
331 views

Spectrogram with square or non-square magnitude of STFT: power vs. magnitude

As seen in this question and answer, to do a spectrogram, it's common to plot either: the square magnitude $|\text{STFT}(\text{frame}, \text{bin})|^2$ ("power spectrum") the magnitude $|\text{STFT}(\...
1
vote
3answers
67 views

harmonic algorithm for extending compressed bandwidth of audio file

I just found this site and feel at home :) I've been playin around with python and some compression ideas and was wondering if there's anything like what I am trying to figure out... I've noticed ...
1
vote
2answers
85 views

Relating phase difference in a signal with its frequency

I have a 134 point complex signal. Using MATLAB, I have observed that the phase difference between any two adjacent samples of this signal is 2 radians i.e. the phase increases linearly from 0 to 268 ...
1
vote
2answers
239 views

wrong output using numpy fft on a tone

I am getting the wrong output with the following simple implementation of Python fft. Can someone please explain what I need to fix? ...
1
vote
1answer
237 views

Image zooming with Fourier transform

I want to go from this image into this one: So basically I need to scale the white square. The authors of the paper claim that this can be done in four steps: zero-padding in real space (image is ...
1
vote
0answers
443 views

Acceleration time series to velocity conversion using DFTs

I have 1000 Hz time series data for acceleration (512 data points), which I want to convert to velocity. I am trying to use the omega arithmetic method to achieve this. Following are the steps I am ...
0
votes
1answer
144 views

Pitch detection algorithms “give up” after very little

I'm sorry if pitch detection has become a stale topic here, but I'm really interested if anyone has any advice on this topic. I'm looking for the best pitch detection algorithm for stringed ...
1
vote
1answer
102 views

Application of Parsevals theorem with Welch method

For my project I had to manually code the welch method using the code below. Pretty much it involves finding the spectral density through fft and incorporating windowing and segmenting with overlap. ...
0
votes
2answers
63 views

I'm confused about the notion of frequency when it comes to arbitrary data

In signal processing class we keep learning about how it's so useful to bring things into the frequency domain instead of the time or space domain but I'm very confused about what the motivation is or ...
0
votes
2answers
144 views

Window length in matplotlib's specgram

In the paper about speaker verification I can read that Two quantities have to be set: the length of the window and the shift between two consecutive windows. For the length of the window, two ...
4
votes
2answers
535 views

FFT vs DFT Run Time Comparison (Complexity Analysis) in MATLAB

So we were given an assignment to plot the time taken by the FFT algorithm by MATLAB and a DFT algorithm written by me in MATLAB.G The expected output should have been the DFT algorithm following the ...
0
votes
1answer
68 views

How to get the MLSEEqualizer work with IFFT and FFT blocks in the communication system?

Matlab MLSEE equalizer works fine with the QPSK modulated signal when the signal is propagated over the multipath channel. However, if there are IFFT and FFT blocks used at TX and RX sides, ...
2
votes
2answers
795 views

How to get around the circular shift property of Discrete Fourier Transform?

I understand that when we introduce a linear time shift using DFT on a finite sequence, the algorithm assumes that the signal repeats itself outside of the given range. Here is an example explaining ...
0
votes
2answers
172 views

Square Wave with Random Edge Shifting

I took a square wave signal and individually shifted all the rising and falling edges by a random amount of time, within certain +/- bounds (a random time for each edge, not shifting all edges by the ...
2
votes
1answer
56 views

Maximum of cross-correlation not moving

I already asked this question here yesterday, but it was very poorly worded I think. I made a much more detailled post explaining my problem of stackoverflow, as it might also be a code problem. Here ...
1
vote
1answer
124 views

DFT (FFT) of Non Uniformly Sampled Signal

I am trying to perform an FFT of a non-uniformly sample signal. My input comes from Simulink and PLECS which uses variable-time solver. So far, I have used ...
0
votes
1answer
626 views

Computation of the Inverse DCT (IDCT) Using DCT Or IFFT

Is there a way to compute the inverse discrete cosine transform (type-2) by leveraging either a DCT, FFT, or IFFT algorithm? I have seen ways to compute the DCT using FFTs, and I've seen ways to ...
0
votes
1answer
120 views

Emulating a Variable Delay

I am trying to emulate a satellite link where the delay time between the satellite and ground station changes over time due to the satellite's motion. I plan do this by converting to the frequency ...
0
votes
1answer
65 views

Extracting positive frequencies of discrete-time signal

Convolution in the time domain is the same as multiplication in the frequency domain. My data is sampled at 200 Hz, which means that the Nyquist frequency is 100 Hz, and all frequency content is <=...
3
votes
3answers
419 views

Calculate ifft using only REAL forward FFT

There are already questions on this topic here and here. I am trying to calculate the ifft using a DSP that only has a library function for a forward REAL (assumes conjugate symmetry) fft. For a given ...
1
vote
1answer
109 views

How to calibrate a signal with respect to frequency

I have recordings from accelerometers (non-flat response with respect to frequency) and I'd like to convert my voltage time series into acceleration values. Is there a standard method for doing this? ...
0
votes
2answers
337 views

Orthogonal signals in frequency and time domains [closed]

I have 3 orthogonal signals obtained by Fourier transformation. But when I do the inverse Fourier transform in Matlab, my signals are no longer orthogonal in the time domain. Here is my question: ...
1
vote
1answer
473 views

Seven term Blackman Harris window

I am currently trying to evaluate a high resolution ADC for which I need to window my output data for the FFT. Up until now I have been using the default 4 term Blackman harris window in MATLAB. ...
1
vote
2answers
78 views

A question about Gibbs phenomenon example in Richard Lyons book

If anyone has a copy of this book could you please shed some light here: I was trying to reproduce the example shown in Chapter 5, section 5.3.1 Window Design Method's Figure 5-19 which illustrates ...
1
vote
1answer
74 views

Perform overlap add with available FFT size smaller than filter coefficients

I would like to process 12 to 20 seconds of incoming audio at a sample rate of 44100. I must process this audio in real time in an STM embedded kit (perhaps also an Android Smartphone). I'm trying to ...