How exactly does Simulink perform 2-D interpolation when using the 2-D lookup table block?

3 ビュー (過去 30 日間)
In my model, I use a 2-D lookup table block with the interpolation method set to “linear”. In the documentation, this method is described as:
“Fits a line between the adjacent breakpoints, and returns the point on that line corresponding to the input.”
This is easy to visualize for 1-D interpolation. How exactly would this method apply to 2-D or n-D interpolation? 

採用された回答

MathWorks Support Team
MathWorks Support Team 2017 年 12 月 29 日
The linear interpolation method used by all the look-up tables in Simulink is an algorithm called “Linear Point Slope”. This algorithm gets the values with regards to each dimension, finds the in-between point, and then repeats for the next dimension. The diagram below demonstrates this with real numbers for the case of a 2-D lookup table. The values U_1 and U_2 are the input signals routed to the look-up table block.
The following equations could then be used to calculate x_12, y_12, and the final output.
This methodology could then be extended to an n-D lookup table.
 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLookup Tables についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by