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.
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![]()
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![]()
okay![]()
impulse signal is defined so it's one in n=0 and zero elsewhereso if you have convolution of any signal with impulse signal it will be that same signal but just in place of impulse signal
![]()
if let's say your impulse signal is shifted left or right... let's say to n=2 meaning that delta signal isthen 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, and another signal move from
to
) and calculate when they overlap... no need to calculate where one of those two are zero
![]()
![]()
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
do you have idea how to start ? (it's better to understand it, no use if i put all calculation)
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)
try![]()
P.S. you don't need to draw this but i did it so you can see what that convolution actually do![]()
that what you have there is periodical discrete convolution
sorry fot that delta(t) , instead of every "t" on the drawing it should say "n"sorry again
here is one quick example of periodical discrete convolution
let's say we have
for
for
for
withwhich is basic period
first look at the sequences![]()
we will put stationary.
we will be moving so we need to draw
and then move that sequence from left to right
and at the end you see result as
and
this is calculating part![]()
sorry for graph 7 it saysand it should say
sorry
![]()
there's example of discrete convolution, but if you notice this example is periodical discrete convolution, something like problem that you have![]()
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 )![]()
your convolution have bigger periodshow what have you done there
![]()
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 havewhere 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 yoursbut i'm willing to help you understand it in your head
![]()
first of all you must know something about discrete convolution (convolution sum)![]()
![]()
now after that said, let's do one(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
)
we have two sequences (finite)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
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 changeand
to
and
and sketch how they look like (yours have just values "1" and "-1" not like this one )
there you have how do they look![]()
now we will decide which one will we move ? (doesn't matter which one you chose) I'll putto 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
third step is represents multiplying sequencesand calculating sum
product of that is given on the next image
![]()
- overlapping sequencesand
, will be different for different values of
.
- sequences will not overlap for
- all products forwill be zero. overlap begins for
, and for
we have partially overlapping of sequences.
forconvolution sum is :
![]()
if we now increase "k" soand we have
more increasing of "k" we will have![]()
forthere is no overlapping so
now you have solution :
![]()
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![]()
show what you have done....
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.