﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1678	Implementation of Modelica.Blocks.Tables.CombiTable2D Interpolation outside interval is wrong	Jens Frenkel	Jens Frenkel	"MSL:
Table look-up in two dimensions (matrix/file) 

If the input signal u1 or u2 is outside of the defined interval, the corresponding value is also determined by linear interpolation through the last or first two points of the table

Implementation:

/* if out of boundary, just set to min/max */
x1 = fmin(fmax(x1,InterpolationTable2D_getElt(table,1,0)),InterpolationTable2D_getElt(table,table->rows-1,0));
x2 = fmin(fmax(x2,InterpolationTable2D_getElt(table,0,1)),InterpolationTable2D_getElt(table,0,table->cols-1));"	defect	closed	high			trunk	fixed		Jens Frenkel Jens Frenkel Lennart Ochel Willi Braun
