I am not completely sure if this is where a MatLab question belongs, so if not, please direct me where I should ask.
But onto my question. I am working on trying to deconvolution a signal with noise. So I have $h(x)=f(x) \ast g(x) +n(x) $. I want to find what the function g is. n(x) is white gaussian noise. I am using the Wiener Deconvolution Method. The function I am using for h is a box:
x=-20:.01:20; h=zeros(size(x)); h(1900:2100)=1;
I know that the Fourier transform of the box should be a Sinc function, but when I use fft(h), I get nothing that resembles this. Additionally, this contains zeros, so when I use the linked method, I end up dividing by zero. So I am wondering how I can go about doing this correctly. (Note: I do not have the symbolic toolbox which was recommended me by a colleague).