How to perform Convolution in excel?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
How to perform Convolution in excel?

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
sulphox



Joined: 07 Dec 2005
Posts: 9

Posted: Mon Dec 19, 2005 4:09 am    Post subject: How to perform Convolution in excel? Reply with quote

Hi all,

As the subject suggest, I would like to know if anyone know how to perform convolution in excel?

In excel only have the Fourier analysis, but no convolution Function.

Thanks in advance.

Sulphox
Back to top
View user's profile Send private message
Guest






Posted: Mon Dec 19, 2005 5:16 pm    Post subject: Re: How to perform Convolution in excel? Reply with quote

You can use the convolution theorem:

conv(x,y) = ifft(fft(zeropad(x,length(x)+length(y)-1)) *
fft(zeropad(y,length(x)+length(y)-1)))

where * denotes the point-wise multiplication of complex vectors.
Back to top
sulphox



Joined: 07 Dec 2005
Posts: 9

Posted: Tue Dec 20, 2005 4:00 am    Post subject: re:How to perform Convolution in excel? Reply with quote

Hi,

Do you mean that convolution is the multiplication of 2 complex number?
let's say if i have S(f) which is FFT of s(n),
also i have Y(f) which is the FFT of y(t).

Do you mean the convolution of S(f) and Y(f) is the Product of the Multiplication of S(f) and Y(f)?

Sulphox
Back to top
View user's profile Send private message
Fred Marshall
Guest





Posted: Tue Dec 20, 2005 9:16 am    Post subject: Re: How to perform Convolution in excel? Reply with quote

Quote:
You can use the convolution theorem:

conv(x,y) = ifft(fft(zeropad(x,length(x)+length(y)-1)) *
fft(zeropad(y,length(x)+length(y)-1)))

where * denotes the point-wise multiplication of complex vectors.

I didn't know that Excel had "zeropad" or "length" ..... ??

In Excel:

"Signal1" in column A

"Filter" or reversed "Signal2" in column B

Column C filled with SUMPRODUCT($nonzero range of cells in Column A ($ for
unchanging), running range of cells in Column B of same length as range in
Column A)

Example:
The fixed-length function is in Column D
The longer function is in Column C.
The convolution is in Column E.

E51=SUMPRODUCT(D$4:D$54,C1:C51)
where
the shortest array "D" is of length 51 and
"C" can be of any length.
C starts with 51 zeros so the leading transient can be computed.

Not fancy but it works.

Fred
Back to top
Guest






Posted: Tue Dec 20, 2005 4:11 pm    Post subject: Re: re:How to perform Convolution in excel? Reply with quote

Quote:
Hi,

Do you mean that convolution is the multiplication of 2 complex
number?
let's say if i have S(f) which is FFT of s(n),
also i have Y(f) which is the FFT of y(t).

Do you mean the convolution of S(f) and Y(f) is the Product of the
Multiplication of S(f) and Y(f)?

Almost. The convolution of s(n) with y(t) is the inverse FT of the
(point-wise) product of S(f) with Y(f)!
Back to top
Guest






Posted: Tue Dec 20, 2005 5:05 pm    Post subject: Re: re:How to perform Convolution in excel? Reply with quote

Quote:
Almost. The convolution of s(n) with y(t) is the inverse FT of the
(point-wise) product of S(f) with Y(f)!

With appropriate zeropadding (otherise, this describes circular
convolution).
Back to top
sulphox



Joined: 07 Dec 2005
Posts: 9

Posted: Wed Jan 18, 2006 5:29 am    Post subject: Reply with quote

Hi all,

I wonder if you guys are still monitoring this topic.
I'm sorry, i was busy with another part of DSP,
Therefore i did not follow up with this.
Hopefully you guys are still monitoring this topic.

Regarding the convolution,
I do not really understand the zeropad.
could you please explain in simpler terms,
because i only know basic excel.
Thanks a lot.

By the way, is there anyway i can attach a file here?


Regards,

Sulphox
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB