Forum FlexPro – Discuss your topic!

formula to put at 0 data between -5 and +5

Home > Community > General > formula to put at 0 data between -5 and +5

Viewing 3 posts - 1 through 3 (of 3 total)
  • Autor
    Beiträge
  • #12638

    We are using flexpro standard. We have data name tension with 2 columns one X time event and the other Y tension value. We want to put at zero some tension value comprising between two level ( ex -5 at +5 ) from a list of data.
    thanks for your help

    #8301

    We are using flexpro standard. We have data name tension with 2 columns one X time event and the other Y tension value. We want to put at zero some tension value comprising between two level ( ex -5 at +5 ) from a list of data.
    thanks for your help

    #9035
    Bernhard KantzBernhard Kantz
    Teilnehmer

    In this case you can use the FPScript-function ValuesInInterval and the Index Operator.
    – Calculate the indices of the values between -5 and 5.
    – Set the y-values of these indices to 0.

    
    Dim Sig = Tension
    Sig.Y[ValuesInInterval(Sig, -5.00000000000000, 5.00000000000000, EVENT_INDEX)] = 0
    Sig
    

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.