Hi Gullanan,
As per my understanding it seems that you are receiving an error while working with the interp2 command. Since the error message is not attached, I can give some possible suggestion which can be helpful.
Please refer the following example to understand the interp2 behaviour.
[x, y, z] = peaks(10);
interp2(x, y, v, 1, 3)
The variables x, y are unknown to the question. However for correctly debugging the question, one needs the information of x and y. It might be possible that the arguments which were passed to the interp2 is lacking some dimensional issue. The calculation of z should be made sure to observe the correct number of outputs.
For more information regarding the issue, Kindly refer the following link.
with regards,
Gokul Nath S J