" Formulate the filter as a sequence of vetcor dot
product between the reference signal h and the
data x: y[n] = <x[n:n-N+1],h[1:N]>. This is esentially
what a FIR filter already does. "
Can anyone help me convert this to a matlab function?
Last edited by amcneilly; January 27th 2010 at 02:54 PM.
" Formulate the filter as a sequence of vetcor dot
product between the reference signal h and the
data x: y[n] = <x[n:n-N+1],h[1:N]>. This is esentially
what a FIR filter already does. "
Can anyone help me convert this to a matlab function?
y(n)=sum(x(n:n-length(h)+1).*h);
CB
Last edited by CaptainBlack; January 29th 2010 at 05:33 AM.
Probably depending on how you have defined the FIR and the weights. There should be N consecutive x's in the sum which you do have but the summation may not be in the order that you want.