Not very sure which interpolation you are trying to perform with LabTalk script. X-function minterp2 you used is for 2D interpolation which is for matrix. Please refer to the following page for more details: https://www.originlab.com/doc/LabTalk/guide/Interpolation