How can I interpolate in matrices with NaN elements in Simulink?
3 ビュー (過去 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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!