Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Return interpolated matrix for given inputs

GNC/Controls

The Interpolate Matrix(x,y) block interpolates a two-dimensional array of matrices.

This two-dimensional case assumes the matrix is defined as a
function of two independent variables, ** x** =
[

$$\begin{array}{l}(1-{\lambda}_{y})[(1-{\lambda}_{x})M({x}_{i},{y}_{j})+{\lambda}_{x}M({x}_{i+1},{y}_{j})]+\\ {\lambda}_{y}[(1-{\lambda}_{x})M({x}_{i},{y}_{j+1})+{\lambda}_{x}M({x}_{i+1},{y}_{j+1})]\end{array}$$

where the two interpolation fractions are denoted by

$${\lambda}_{x}=(x-{x}_{i})/({x}_{i+1}-{x}_{i})$$

and

$${\lambda}_{y}=(y-{y}_{j})/({y}_{j+1}-{y}_{j})$$

In the two-dimensional case, the interpolation is carried out
first on * x* and then

The matrix to be interpolated should be four dimensional, the
first two dimensions corresponding to the matrix at each value of * x* and

`(x = 0.0,y = 1.0)`

, `(x = 0.0,y = 3.0)`

, `(x = 1.0,y = 1.0)`

and `(x = 1.0,y = 3.0)`

,
then the input matrix is given by`matrix(:,:,1,1) = A;`

`matrix(:,:,1,2) = B;`

`matrix(:,:,2,1) = C;`

`matrix(:,:,2,2) = D;`

**Matrix to interpolate**Matrix to be interpolated, with four indices and the third and fourth indices labeling the interpolating values of

and*x*.*y*

Input | Dimension Type | Description |
---|---|---|

First | Contains the first interpolation index .i | |

Second | Contains the first interpolation fraction λ_{x}. | |

Third | Contains the second interpolation index .j | |

Fourth | Contains the second interpolation fraction λ_{y}. |

Output | Dimension Type | Description |
---|---|---|

First | Contains the interpolated matrix. |

This block must be driven from the Simulink^{®} Prelookup block.

See the following block reference pages: 2D Controller [A(v),B(v),C(v),D(v)], 2D Observer Form [A(v),B(v),C(v),F(v),H(v)], and 2D Self-Conditioned [A(v),B(v),C(v),D(v)].

Was this topic helpful?