--- Kaveh <

kaveh_vejdani@...> wrote:

> > Therefore 6, 4, 2, and 0 can be created as differences {8,6} - {6,2}

>

> Phil, I keep failing. Would you please provide me with a Matlab code

> that does this task using fft and ifft?

FFTs, a pointwise multiply and an IFFT perform a convolution.

I have provided the result of the convolution in question, obtained directly.

I can't give technical support for a product I do not have.

Try:

v1=FFT([0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0])

v2=FFT([0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0])

v3=v1*v2

v4=IFFT(v3)

However, the real question is why you're trying to use this technique at all?

It's got the least favourable Big-Oh of any of the techniques mentioned.

Phil

() ASCII ribbon campaign () Hopeless ribbon campaign

/\ against HTML mail /\ against gratuitous bloodshed

[stolen with permission from Daniel B. Cristofani]

____________________________________________________________________________________

Sponsored Link

Mortgage rates near 39yr lows.

$510k for $1,698/mo. Calculate new payment!

www.LowerMyBills.com/lre