Piecewise linear interpolation by matrix
y=f(x)
