Interpolation of tables with one equidistant argument.
The table contains the argument-vector as first column xy_tab[1,:].
y(x) for x-values exceeding the table-range are linearly extrapolated.
function interpolateTable extends Modelica.Icons.Function; input Real x "table argument"; input Real[:, :] xy_tab "table, [argument, values]"; output Real[size(xy_tab, 2) - 1] y "interpolated table values"; end interpolateTable;