Return interpolated matrix for given inputs
This three-dimensional case assumes the matrix is defined as a function of three independent variables:
x = [x1 x2 x3 ... xi xi+1 ... xn]
y = [y1 y2 y3 ... yj yj+1 ... ym]
z = [z1 z2 z3 ... zk zk+1 ... zp]
For given values of x, y, and z, eight matrices are interpolated. Then for
xi < x < xi+1
yj < y < yj+1
zk < z < zk+1
the output matrix is given by
where the three interpolation fractions are denoted by
In the three-dimensional case, the interpolation is carried out first on x, then y, and finally z.
The matrix to be interpolated should be five dimensional, the first two dimensions corresponding to the matrix at each value of x, y, and z. For example, if you have eight matrices A, B, C, D, E, F, G, and H defined at the following values of x, y, and z, then the corresponding input matrix is given by
Matrix to be interpolated, with five indices and the third, fourth, and fifth indices labeling the interpolating values of x, y, and z.
|Contains the first interpolation index i.|
|Contains the first interpolation fraction λx.|
|Contains the second interpolation index j.|
|Contains the second interpolation fraction λy.|
|Contains the third interpolation index k.|
|Contains the third interpolation fraction λz.|
|Contains the interpolated matrix.|
This block must be driven from the Simulink® Prelookup block.