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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by