Re: Signal smoothing

Doug Stewart <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <CAAohRsZVmHVndB8UOjrxoQCa7sem1GpQKW38j8nzrMGq9+XnpA@mail.gmail.com>
On Wed, Dec 30, 2020 at 10:10 AM Blaz <[email protected]> wrote:

> Sure. I will try it. In the first post I have enclosed the picture of the
> wanted result. I have an input vector x. (which can also have a shape of
> ordinary sine wave). What I need to do is create a result signal y which
> picks up local max values (peaks) and from there the value of y
> exponentialy
> decays with the T as a time constant until the input signal x value is
> smaller than y. If the input x is greater again than the exponential
> decayed
> signal, then the resulting y takes the shape of X again. However, it is
> important that the y never drops to 0 or gets lower than x and that it
> strictly follows local peaks of x. Perhaps an low pass filter would do this
> task or also some kind of averaging. I am enclosing the picture again.
>
> ex.png <https://octave.1599824.n4.nabble.com/file/t373917/ex.png>
>
>
>
> --
> Sent from:
> https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>
> I now understand!!
You want to model a half wave rectified signal with a decay on the held
voltage to model the slope from the load current.
You have to do some "if" statements similar to what you did in the other
question.



-- 
DAS[image: Certificate for 206392]

<https://linuxcounter.net/user/206392.html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.