WOLFRAM SYSTEM MODELER

Piecewise

Piecewise linear function

Wolfram Language

In[1]:=
SystemModel["SystemDynamics.Functions.Utilities.Piecewise"]
Out[1]:=

Syntax

y = Piecewise(x, x_grid, y_grid)

Inputs (3)

x

Type: Real

Description: Independent variable

x_grid

Type: Real[:]

Description: Independent variable data points

y_grid

Type: Real[:]

Description: Dependent variable data points

Outputs (1)

y

Type: Real

Description: Interpolated result