To interpolate a vector in dependence of two other vectors to a vector dependent of one vector and a fixed value, you can use the interp1 function provided by MATLAB.
Here is an example code snippet:
main.m391 chars15 lines
In this example, we first define two independent variables x1 and x2 and their corresponding dependent variable y. We then define a new independent variable x and a fixed value fixed. Using the interp2 function, we can interpolate the dependent variable y_interp based on x1 and x2, for the new values of x and the fixed value fixed.
Hope this helps!
gistlibby LogSnag