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

12 views (last 30 days)
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

Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!