matrix interpolation and test