Prev: Tomorrow they are ready to start the LHC collider. The Earthcan be exploded in a 1000 seconds!
Next: C code for fixed point atan2
From: shamma on 25 Feb 2010 04:10 hi suppose i have data x=[1 2] i want to ask which is correct way of padding zeros 1) [ 0 1 2 0] or 2)[ 1 2 0 0 ] which is effectively fft(x,4) Thanks
From: Rune Allnor on 25 Feb 2010 04:13 On 25 Feb, 10:10, "shamma" <shammashah...(a)yahoo.com> wrote: > hi > suppose i have data x=[1 2] > > i want to ask which is correct way of padding zeros > > 1) [ 0 1 2 0] > > or > > 2)[ 1 2 0 0 ] which is effectively fft(x,4) You can do it either way. The key is that you append zeros before and / or after the sequence x, not inside. Rune
From: shamma on 25 Feb 2010 04:39 >On 25 Feb, 10:10, "shamma" <shammashah...(a)yahoo.com> wrote: >> hi >> suppose i have data =A0 x=3D[1 2] >> >> i want to ask which is correct way of padding zeros >> >> 1) [ 0 1 2 0] >> >> or >> >> 2)[ 1 2 0 0 ] which is effectively fft(x,4) > >You can do it either way. The key is that you append zeros >before and / or after the sequence x, not inside. > >Rune > what if it is like this x=[ 1 0 0 2] what effect would it have ?
From: Avier on 25 Feb 2010 04:40 >On 25 Feb, 10:10, "shamma" <shammashah...(a)yahoo.com> wrote: >> hi >> suppose i have data =A0 x=3D[1 2] >> >> i want to ask which is correct way of padding zeros >> >> 1) [ 0 1 2 0] >> >> or >> >> 2)[ 1 2 0 0 ] which is effectively fft(x,4) 1) is better
From: suren on 25 Feb 2010 04:52
On Feb 25, 2:10 pm, "shamma" <shammashah...(a)yahoo.com> wrote: > hi > suppose i have data x=[1 2] > > i want to ask which is correct way of padding zeros > > 1) [ 0 1 2 0] > > or > > 2)[ 1 2 0 0 ] which is effectively fft(x,4) > > Thanks I think both are equivalent. If you stack copies of [1 2 0 0] or [0 1 2 0] to form a periodic signal, both look the same, except for a sample delay.The amplitude spectra of both should be same. Did you check that ? regards suren |