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 | STAIR

STAIR – [STAIR]
Generates discrete stairs at regular intervals .
CATEGORY
Mathematical

DESCRIPTION
Generates discrete stairs at regular intervals. The parameters x_begin, x_end, period, first_value,
last_value and increment define the shape of the output. The following figure presents how to use
each parameter.

RESULT VARIABLES AND PARAMETERS

ResultStairs signal
x_beginX minimum value
x_endX maximum value
Periodtime interval between X samples. The number of samples that output vector will contains is equal to (x_end-x_begin)/period+1.
First_ValueY minimum value
Last_ValueY maximum value
IncrementY increment between stairs


SYNTAX

res=stair(x_begin,x_end,period,first_value,last_value,increment)
CHARACTERISTICS
Data type support
Double Floating point
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