How can I interpolate in matrices with NaN elements in Simulink?

3 ビュー (過去 30 日間)
Justus
Justus 2012 年 9 月 24 日
コメント済み: aDRN 2019 年 12 月 11 日
Hi There,
I would like to use a 2-d lookup-table, add a 7d-matrix to it and have it interpolate everything between the given values. So far, that works, but unfortunately my 7d-matrix has some NaNs in some Elements, which cause the interpolation to fail.
Example with 2d-Matrix:
A = [1 2 3; 2 NaN 4; 3 4 5]
if I give the lookup table the inputs 1.5 and 2.5, I want it to return 3.
Now, how could I go about achieving this?
Many thanks in advance
Justus

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by