help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convolve and Deconvolve not working right??


From: Daniel Oberhoff
Subject: Re: Convolve and Deconvolve not working right??
Date: Sun, 25 Mar 2007 19:32:59 +0200

It would help if you make it reproducile. What is gausscurve in your example?

for me this works (octave 2.99):

stept=zeros(1,501);stept(1:251)=1;
gaussiancurve=exp(-(-1:0.1:1).^2);
smoothedstept=conv(stept,guassiancurve);
out=deconv(smoothedstept,gaussiancurve);


you had many typos though, maybe that was the problem?

stept=zeros(1,501);stept(1:251)=1;

then smooth it with a guassian shaped curve

smoothedstept=conv(sept,guassiancurve);


now recover the step by trying to deconvolve doesn't work

out=deconv(smoothedstept,guassiancurve);

produces an error that the first term is supposed to be
non-zero.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]