Questions tagged [zero-padding]

Zero padding consists of extending a signal (or spectrum) with zeros to extend its time (or frequency band) limits.

0
votes
1answer
32 views

Matlab: Different 1-D FFT results with and without zero-padded

Recently I am implementing FFT with C code. So I use Matlab for algorithm verification. As Radix-2 FFT was chosen, I've learned that zero-padding technique could help to reach 2^N limitation without ...
3
votes
3answers
172 views

How Much Zero Padding Do We Need to Perform Filtering in the Fourier Domain?

Consider an $M\times N$ image $f$ and an $G \times K$ filter $h$. Given that convolution in the spatial domain corresponds to multiplication in the Fourier domain, then we can perform a convolution of ...
2
votes
2answers
83 views

Is there a rule of thumb for zero padding in image processing?

I see there are a lot of answers on why zero padding is necessary and how it avoids wrapping around the sides of images. However is there a rule of thumb on how much padding will be good for the image ...
0
votes
0answers
35 views

Zero padding frequency domain data for improving time domain resolution before inverse FFT

I am working in MATLAB with measured data from a VNA. The bandwidth is 1 GHz from 5-6 GHz with 801 samples in the frequency domain. Everywhere I have read that I need to split the data into 2 parts at ...
1
vote
1answer
43 views

DFT zero-padding of signals starting before n=0

If a signal starts before n=0, what part of the signal should be used to compute DFT after zero-padding? For example, x(n) = {1, 2, 3, 4, 5}, where x(-2) = 1 and x(0) = 3. If this signal is zero-...
0
votes
2answers
133 views

Zero-padding, energy conservation

When calculating the FT of a signal, and the FT of that same signal but after having applied zero-padding to it, should't the amplitudes of the FT of the zero-padded signal decrease with respect to ...
0
votes
0answers
28 views

DFT: Zeroing frequency bins resulting in strange values at the end of my signal [duplicate]

I have an issue with my DFT. I think that I got how to fix it, but I lack the intuition on why there was a problem, and why my solution fixes it. I have to apply DFT to a noisy signal. The second ...
0
votes
1answer
28 views

DFT of sum of sinusoids with random zeroed samples

I have a noisy signal consists of sum of sinusoids, I had a situation where some of the time domain samples are zeroed randomly. The following figure shows the DFT before and after zeroing, the number ...
-1
votes
1answer
34 views

Is it possible to zero-pad series when using MSCOHERE in matlab?

The function fft allows one to zero-pad, and mscohere, after all works with auto and cross spectra, which, presumably, have all been calculated with fft. I haven't found any mention on zero-padding in ...
1
vote
1answer
128 views

zero padding shifting signal peak?

I am trying to find the fundamental frequency of a low-frequency signal. I need an estimate that is precise to .01 Hz based on only a few cycles, so I'm trying to code up a fft in Python. The signal ...
1
vote
3answers
500 views

How do I calculate peak amplitude of the signal components after zero padding and FFT?

I am learning about DFT and trying to apply it to some audio processing. I am new to DSP but experienced in programming and have some background in math and physics. The FFT algorithm I use (lomontFFT)...
0
votes
1answer
65 views

Zero padding issue - cut the buffer

I have some issue with zero padding. It's probably because I don't understand it enough. I have buffer size set to 400. And I use radix-2 fft. So I take the input signal 400 samples, and add to them ...
1
vote
0answers
112 views

Windowing a signal by using Hanning / Hamming or… zero padding?

My question is about the use of Hanning or Hamming windows versus "square" windows. In my understanding, I will use a Hanning or Hamming window to limit the spectral leakage. But, on the second hand, ...
1
vote
2answers
764 views

How to increase the spectral resolution?

My question is about the spectral resolution of a discrete signal. Each sample of my signal is made up with 2^n frames sampled at 44.1 kHz. So, when I want to know the spectral resolution, I ...
4
votes
1answer
189 views

Zero padding effect on a FFT of gaussian noise

I have a gaussian noise $\nu(t)$ with variance $\sigma^2$. After a FFT I get $X(\omega)$. If now I do the IFFT on the $X(\omega)$ can I say that the result is still a gaussian noise of variance $\...
1
vote
0answers
96 views

When Is a Power of 2 FFT Slower than Smaller Sized Non Power of 2 FFT in MATLAB

Knowing that computing an FFT is faster if the amount of samples is a power of 2 I have always tried to pad the inputs to Matlab's FFT with zeros until the next power of 2 is achieved. Matlab's ...
0
votes
1answer
215 views

What does it mean when you zero pad data and why does one do it? [duplicate]

I am struggling to understand what effect zero padding data would have on EMG data. How does it improve the signals? Any help in simple terms that's not too mathematical would be greatly appreciated!
3
votes
2answers
155 views

Zero padding - High amplitude

I have a set of 512 samples that I have collected with a sensor. I'd like to apply zero padding to it, for better frequency bin resolution. However, all the tutorials I see to make this occur center ...
0
votes
1answer
94 views

Is image padding really necessary while using a filter?

I do know that we must pad an image while using a filter. But what I am suggesting is that is it really necessary? Can't we just calculate at run time if the current cell/pixel is an edge cell/pixel ...
1
vote
3answers
323 views

Spectral window when FFT is not a power of 2

I am trying to better understand zero padding and the FFT. To do so, I am attempting to plot the spectrum of the Hann window function, i.e. $$ w(n) = \frac{1}{2}\left(1-\cos\left(\frac{2\pi (n+1/2)}{...
0
votes
2answers
440 views

What proportion of a padded FFT should be actual values

For a given signal, I've been told that you can pad the vector with $0$s at the end to get a larger DFT, and as a result get more precision in frequency bins. What are the limits to this approach? ...
4
votes
1answer
2k views

What happens when N increases in N-point DFT [duplicate]

I am curious about DFT, and I wrote a simple MATLAB code to test what happens when $N$ increases. I took a rectangular signal with length $L=15$, an then found th DFT of 16, 32 and 64 points. I looked ...
0
votes
2answers
483 views

How to perform zero-padding to 3 dimensional array

Consider an array with $t=10000$ rows, $i=2$ columns and $n=41$ as a 3rd dimension. Now I add the columns of this array to yield a matrix with $t$ rows and $n$ columns. However in MATLAB the size of ...
3
votes
1answer
341 views

remove zero padding effect crosscorrealation

I am trying to make the cross correlation on the frequency domain and I use the fft function which takes power of 2 input data so I must pad with zero my incoming sample signal and localy generated ...
1
vote
1answer
292 views

Does Zero Padding Work as Advertised?

I have trouble accepting the merits of zero padding in the frequency domain to give more points in FFT. Wonder if anyone else has similar thoughts. The mathematical 'proof'for the validity of zero ...
4
votes
1answer
4k views

How does zero-padding affect the magnitude of the DFT?

Let's simulate sinusoids of two frequencies using the following Matlab code: ...
0
votes
1answer
602 views

Filter and crop an image

I am a big fan of fft convolution. So, I mostly try to avoid non-fft convolution. Suppose, I am trying to convolute an image with another image. Suppose the first image is $512\times 512$, and, the ...
2
votes
2answers
448 views

Zero-padding a spectrum, how to split the middle bin?

When a complex digital signal is converted to its spectrum through an FFT, the result will contain a series op positive and negative frequencies. That is, when the spectrum has N bins. Bin 0 will be ...
0
votes
1answer
327 views

Zeropadding and amplitude scaling

Could somebody tell me what is the DFT scaling of a $N$-length signal which is padded with $M$ zeros ? Is it $1/(M+N)$ or $1/N$, i.e. $$ Y_k=\frac{1}{N}\sum_{n=0}^{N-1}y(n)e^{\frac{2\pi nk}{(M+N)}} \...
1
vote
1answer
2k views

Difference Between `fft(signal, nfft)` and `fft(signal)`

I want to know the difference between these following commands (matlab) and why I get two different outputs? fft(signal); fft(signal, nfft); I found that ...
1
vote
2answers
6k views

Relationship between z-transform and DFT

I'm studying for a Signals Processing exam and came across an exercise that I'm finding pretty difficult to solve. It says: Asume there is a signal $x[n]$ of length $N$. Its $\mathcal{Z}$-Transform ...
1
vote
2answers
2k views

FFT, padding, IFFT and plot in time domain

I performed an FFT with some zero padding and would like to transform it back to time domain. When I plot the signal it looks wrong. Is it because of the padding used in the FFT? How can I make it ...
1
vote
2answers
429 views

When I ask Matlab for a zero-padded FFT, does it (or FFTW) ever explicitly create a zero-padded input vector?

If I have a length $N$ signal and ask Matlab for an $M$-point FFT, $M \gg N$, of course the computer has to allocate memory for $M$ output samples, but my question is if it ever has to allocate memory ...
0
votes
1answer
381 views

Frequency response and impulse response of black box

I am trying to find out the transfer function of a real life continuous-time black box. First thought is of course to input a delta and get the impulse response as the books have taught us but I ...
0
votes
1answer
508 views

How can I increase image size by zero padding?

For increasing the image size from 8X8 to 32X32, I tried to do zero padding. The simplest concept of zero padding in Java for me seems to be the code as shown below in Java such that I can shift each ...
1
vote
1answer
362 views

correct way for Zero padding

I am doing simulation of FMCW radar. I am applying signal processing chain on raw radar data. Here in the code below, I am taking fft of data and plotting it. ...
0
votes
2answers
1k views

How to perform a time domain shift in the frequency domain without zero padding

Apologies in advance if my question doesn't make sense. I'm not the most fluent person in signal processing. I have an array of time domain values that I would like to apply a time delay to by ...
2
votes
1answer
481 views

Why is the magnitude of the second component of my FFT spectrum always the largest one?

While working with FFT, I have a strange case with a current experimental setup. I am working with beat frequencies (intermediate frequency output) and using a standard FFT algorithm (complex to ...
1
vote
1answer
341 views

FFT peak estimation: Zero-padding vs signal repetitioon

I am working on obtaining the vortex shedding frequencies behind a 2D square using CFD. Time-varying data is being extracted from a specific cell behind the square. I've written a little python script ...
0
votes
1answer
554 views

FFT of signal with starting value zeros

I have a signal, ...
5
votes
3answers
7k views

Advantages/disadvantage of zero padding

I would like to know what are the advantages/disadvantage of zero padding with respect to frequency measurement and amplitude measurement
0
votes
2answers
110 views

Use Zero Padding to find hidden peaks

I know adding zeros will not increase the frequency resolution. I have couple of waveforms in time domain measured over months. I take the fft of the waveforms to find frequency components. The ...
5
votes
3answers
1k views

FFT: Removed padded zeroes?

I have an application where I do this: DFT->Filter->IDFT on a range For computational performance I'm zero-padding my FFT to a power of two, but when I ...
2
votes
1answer
3k views

Is digital up and down sampling linear/causal/time-invariant?

So I am trying to determine whether the process of up sampling (zero padding) and downsampling are linear, causal and/or time-invariant. Based on some resources I found online, I am under the ...
0
votes
2answers
2k views

Merits of “Zero-Phase” Zero Padding

I understand the reasons for zero-padding a finite signal before FFT. However, I was reading this book (http://www.dsprelated.com/dspbooks/sasp/Zero_Phase_Zero_Padding.html) where the topic is Zero ...
0
votes
1answer
1k views

Implementing digital filter by padding with zeros

I am making a 9th order digital bandpass filter with lower and upper corners of 200 kHz and 40 MHz respectively. I am using this filter to filter a 1D time domain signal which is 64k samples long ...
0
votes
0answers
920 views

Autocorrelation and FFT : avoid zero-padding

Some posts evocate the computation of convolution or cross-correlation using FFT and zero-padding the temporal signal. I want to compute the autocorrelation of a 3D array using FFTW (2 dimensions are ...
0
votes
2answers
123 views

Signal Resolution

I have a question. Suppose we have a signal $x(n)$, length (samples) $N=400$ which have been sampled with $f_s=8000 \mathtt{Hz}$. Also suppose $X(k)$ - the DFT transform of this signal. How many ...
0
votes
1answer
966 views

Why is there a difference between MATLAB's FFT of a zero-padded signal compared to the non-padded case

I created a data signal and calculated the spectrum via the fft-command in MATLAB. The data-signal itself is not periodic but it is created in a way that it can be treated as one period of a periodic ...
0
votes
4answers
917 views

FFT - Effects of Windowing,Improvisation approaches on RealTime FFT Hardware

Fore-word :Kindly Observe this question has multiple updates take the latest update as question ! here below is my 256pt FFT on an 2Khz sinusoid signal,on a fixed point DSP tms320c5515 please ignore ...