Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Mathematical | DIFF

DIFFERENCE – [DIFF]
Outputs the difference between two consecutive samples from the input.
CATEGORY
Mathematical

DESCRIPTION
Outputs the difference between two consecutive samples from the input. Output will always have one sample point less than the input as there will be no output sample corresponding to first input sample.
RESULT VARIABLES AND PARAMETERS

ResultDifference of the input
SignalInput


SYNTAX

res=diff(input)

CHARACTERISTICS

Data type support
Double Floating point
Output Size
If [N] is the size of the input signal, the size of output signal is [N-1].

EXAMPLE

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter