First of all sorry if this is in the wrong forum.

Could somebody please help me with my math problem, thanks in advance.

Yes I understand its will be a long answer so send me a pm if necessary.

Printable View

- August 14th 2010, 01:00 PMSanMiguelDiscrete convolution.
First of all sorry if this is in the wrong forum.

Could somebody please help me with my math problem, thanks in advance.

Yes I understand its will be a long answer so send me a pm if necessary. - August 14th 2010, 01:35 PMyeKciM
discrete convolution is much easier (as for math calculation) than another types (like convolution of analog signals), but when you have convolution of discrete signals it's just multiplication of two signals :D:D:D:D

now i assume that you know what is impulse signal ? do you know how to draw that you wrote up there (signals) ? we will start from there :D - August 15th 2010, 11:42 AMSanMiguel
Not really sure what your asking but, yes I know what an impulse signal is. Not really sure how to draw it.

- August 15th 2010, 01:21 PMyeKciM
okay :D

impulse signal is defined so it's one in n=0 and zero elsewhere :D so if you have convolution of any signal with impulse signal it will be that same signal but just in place of impulse signal :D

if let's say your impulse signal is shifted left or right... let's say to n=2 meaning that delta signal is then convolution of any signal x[n] with that impulse signal is going to be that signal but in n=2 , meaning it will be ... (i hope you can conclude how that works)

convolution can be done by putting one (usually more complex signal) at the spot, so you don't move that one nowhere :D, and another signal move from to ) and calculate when they overlap... no need to calculate where one of those two are zero :D :D:D:D

i see you have there formula for discrete convolution here are that impulse signal and response of filter on impulse signal, and of course x[n] for which you need to calculate convolution :D

do you have idea how to start ? (it's better to understand it, no use if i put all calculation :D)

Hint: maybe you know maybe you don't but when shifting one signal, it's shifted for integer (that's one thing which is easier with discrete convolution, you have here sum of products, but in convolution of analog signals you have to solve a lot of integrals :D:D:D)

try :D

P.S. you don't need to draw this but i did it so you can see what that convolution actually do :D:D:D:D:D

that what you have there is periodical discrete convolution :D

sorry fot that delta(t) , instead of every "t" on the drawing it should say "n" :D sorry again - August 15th 2010, 02:49 PMyeKciM
here is one quick example of periodical discrete convolution :D

let's say we have

for

for

for

with which is basic period :D:D:D

first look at the sequences :D we will put stationary. we will be moving so we need to draw and then move that sequence from left to right :D and at the end you see result as and

this is calculating part :D

sorry for graph 7 it says and it should say sorry :D

there's example of discrete convolution, but if you notice this example is periodical discrete convolution, something like problem that you have :D:D:D:D - August 16th 2010, 07:04 AMSanMiguel

So is this the answer then? Should there not be y4 and y5 etc? - August 16th 2010, 07:54 AMyeKciM

that is for my example that i give there and no there is no need for calculating for y4,y5 ... because your basic period is 4... and as any periodical function, it repeat it self afterwards for any mK (where m is any positive integer,and K basic period ) :D:D:D

your convolution have bigger period :D show what have you done there :D - August 16th 2010, 01:37 PMSanMiguel
Im afraid im still a bit lost with this

- August 16th 2010, 01:42 PMyeKciM
that there what i have done calculating is just example (not based on your values) so you can do yours and post it, and say (if there is) where is the problem that you have :D where do you get lost ?

P.S. i can do one more example more similar to your problem (of convolution two sequences that are not periodical ) i'm not going to do yours:D but i'm willing to help you understand it in your head :D:D:D:D - August 17th 2010, 06:23 AMSanMiguel
Maybe if you could do the first bit I could pick it up from there, hopefully.

- August 17th 2010, 12:25 PMyeKciM
first of all you must know something about discrete convolution (convolution sum) :D:D:D

**now after that said, let's do one :D (not that which you have to do, but it's the same as that one, just smaller and you can pick up from there... yours can be done at the same way but that will you do and we will see did you get it right :D:D:D:D )**

we have two sequences (finite) :D and we have to calculate convolution of those two sequences... sequences are :

so we have convolution (discrete convolution) :

as you see it's the same. never mind which one you will move :D:D:D

first step (i'll again do it like that one before so you can see what and why is that like it is) you will change and to and and sketch how they look like (yours have just values "1" and "-1" not like this one )

Attachment 18646

there you have how do they look :D

now we will decide which one will we move ? (doesn't matter which one you chose) I'll put to be stationary and flip to (meaning that any value for will be now in the and so on... ) now we will move that sequence for chosen value of "k". in this case it's k=3... (that's something you must know from theoretical knowledge )after doing that and shifted will look like this :D:D

Attachment 18645

third step is represents multiplying sequences and calculating sum product of that is given on the next image :D

Attachment 18644

- overlapping sequences and , will be different for different values of .

- sequences will not overlap for

- all products for will be zero. overlap begins for , and for we have partially overlapping of sequences.

for convolution sum is :

if we now increase "k" so and we have

more increasing of "k" we will have

for there is no overlapping so

now you have solution :

- August 17th 2010, 01:31 PMSanMiguel
Yes I have an example similar to yours with the answer. The main problem is how I use my numbers (+1, -1 ect) in it. So if I was to know the first line, I would propably be able to do it.

- August 17th 2010, 10:40 PMyeKciM
hm... how does it's "main problem" is using "your" numbers (+1 and -1 ) ?!?!?!?!?!

On two examples i showed to you principles of how do you do discrete convolution. I don't see how can it be any (much) different, yes it's different your problem is much easier :D:D:D:D

show what you have done.... - August 20th 2010, 04:13 AMSanMiguel
ok, Ive had a go. I did it on a word document and cant get it on here so I will just put the basics so you can understand them.

y0=h0x0

y0=1

________

y1=h0x1+h1x0

y1= (+1*+1) + (+1*-1)

y1=0

________

y2= h0x2+h1x1+h2x2

y2= (+1*-1) + (+1*+1)+(+1*-1)

y2= -1

________

k 0 1 2 3 4 5 6

hk +1 +1 +1 -1 -1 +1 -1

xk -1 +1 -1 -1 +1 +1 +1

Got my values from the table I made above

only done the first 3 values of y as I wasnt sure I was doing it right. Am I?

If it makes it easier I could email you the word document?

I couldn't get on this website yesterday for some reason.

Ps. I really need the answer to this by Sunday at the latest. - August 20th 2010, 08:49 AMyeKciM
yes your are going really good :D

............

your solutions will be in interval from to because from to your let's say "h" will be entering in "x" so at he will be overlap totally :D but then he starts to exiting so you have six more :D:D:D:D