Skip to main content
2 of 7
deleted 137 characters in body
Leo
  • 442
  • 7
  • 15

How to perform Wiener deconvolution in Matlab

I have an output signal y which is an input signal x convolved * with an impulse response function h with some added noise n :

y(t) = h(t) * x(t) + n(t)

I know the input signal x and output signal y and would like to calculate h the impulse response function. I found that deconvolution is not as straightforward as convolution because the input signal contains zeros and then division in the frequency domain would not be defined. Looking around the internet for ways to "deconvolve" if found two methods: Wiener deconvolution and regularized deconvolution. The Wiener deconvolution seemed easier to understand so I wanted to try and implement it in Matlab (the Matlab function deconv gives me errors about the input signal having a zero at the first entry and if I read the help file it only seems to work correctly for polynomials?).

So per the wikipedia explanation you want to find g so that:

x_hat(t) = g(t)*y(t)

But then in the definition of how to calculate G they use all variables in the original equation. Also they only show how to find x but probably x and h can be exchanged because convolution is commutative, but Im unsure about the correct length of both vectors. Currently they are the same length.

enter image description here

where:

H = fft(h)

G = fft(g)

S = power spectral density of x ? is this fft(x)?

N = mean power spectral density of n, dont really understand what this is

My question is how do I get the impulse response function h without already knowing it (as it is both in the definition of G and in the original equation)? Since I know both input and output it should not be very different from finding the input with a known inpulse response function. I want to do this in Matlab.

Leo
  • 442
  • 7
  • 15