determine the Max and the Min of a signal

Hello everybody,

In my project,i want to find the period of a signal,so I want to determine the Max and the Min of the signal to find the time Max and the Min time value,and I will use this expression to find the period:T= timeMax - timeMin

can someone help me to find how can I do it.

Thank you ^^

Do you imagine posting the same question in different parts of the forum will get you an answer quicker?

Duplicate post deleted.

Do not cross-post, cross posting wastes time.

So, you need to save the time in that you have read that value too. To find the max and min is easy and you have functions to do that.

krikho1994:
Hello everybody,

In my project,i want to find the period of a signal,so I want to determine the Max and the Min of the signal to find the time Max and the Min time value,and I will use this expression to find the period:T= timeMax - timeMin

That expression will give you the wrong value. The period is the time between successive maximums of the signal or indeed successive minimums.

The other thing that what you have drawn is impossible to detect because any algorithm is going to only spot a local minimum. How can it possibly know that a lower minimum is comming along at any time in the future?

BUT that is only true for some signals. There are many signal shapes that this will not true for.