LIN – Linear interpolation

Block SymbolLicensing group: STANDARD
PIC

Function Description
The LIN block performs linear interpolation. The following figure illustrates the influence of the input u and given interpolation points [u1, y1] and [u2, y2] on the output y.

PIC

Input

u

Analog input of the block

double

Output

y

Analog output of the block

double

Parameters

u1

x-coordinate of the 1st interpolation node

double

y1

y-coordinate of the 1st interpolation node

double

u2

x-coordinate of the 2nd interpolation node  1.0

double

y2

y-coordinate of the 2nd interpolation node  1.0

double