[Top][All Lists]

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

Re: Sine wave code

From: Sergei Steshenko
Subject: Re: Sine wave code
Date: Tue, 29 Dec 2020 17:38:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 29/12/2020 11:04, Blaz wrote:
Hello coders

I have a request for some sine wave code. I need to create a modified sine
wave where I cuttof the wave at certain value and hold this until the next
zero crossing (Please refer to the red marked line on the picture). The sine
wave (or some other for that matter) comes in as an input vector with 20
samples per period (this can change though from 20 to up to 40 max, but I
don't think this has any consequence though).

This is part of a longer code, but I can not get this section done properly.
I would appreciate any kind of ideas.



Sent from:

Have you ever heard of 'asin', 'acos' functions ? would be a good start.


reply via email to

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