- #1
schulzy
- 8
- 0
Homework Statement
I have a convolution integral:[tex]H(\omega)=\int E_{L}(\omega -\omega_{T})E_{T}(\omega_{T})d\omega_{T}[/tex]
I would like calculate this integral at every [tex]\omega[/tex], but I have just discreet points, also first I calculated this with H=conv([tex]E_{L},E_{T}[/tex]), but I think so this is not equal with convolution integral, because we do not give the step size [tex]d\omega[/tex]
I wrote a convolution function in matlab, and I compared the two result
k=1:..
for j = 1 : length(y)
if (k-j+1>0 && k-j+1<= length(y))
S(j)=x(j)*y(k-j+1);
end
end
S;
trapz(S)*dw
sum(S)
The sum(S) is equal H(k), but if I compute the integral result, I get some different result.
I think, I misunderstand something.
Please, can somebody explain me, what is different and why do not get we the step size in the convolution function.