Appearance
Lookup Table 1-D
Maps a double input through a table of breakpoints (x, y) to a double output. Linear interpolates between breakpoints; Nearest picks the closest breakpoint; Previous holds the y of the last breakpoint at or below the input (a staircase). Outside the table, Clamp holds the end values and Linear extends the first or last segment. The x column must be strictly increasing; if it is not, the simulator logs an error, sorts the rows and drops repeated x values. Type or paste the table (two columns, from a spreadsheet or CSV) in the properties dialog.
Category: Nonlinear
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
in | Control input | Real | |
out | Control output | Real |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Breakpoints | Table | 3 rows (Input x, Output y) | — | One row per breakpoint: input x and output y. x must be strictly increasing. | table |
| Interpolation | Choice: Linear / Nearest / Previous | Linear | — | Linear = straight line between breakpoints. Nearest = y of the closest breakpoint. Previous = y of the last breakpoint at or below the input. | interpolation |
| Outside the table | Choice: Clamp / Linear | Clamp | — | Clamp = hold the first or last y. Linear = extend the first or last segment. | extrapolation |