How to include "interp3" into Embedded Matlab

4 views (last 30 days)
Pengfei
Pengfei on 19 Jul 2012
I need to use the 3-D interpolation function "interp3" into one of my embedded Matlab block of my Simulink model. This function is not supported by embedded Matlab. I know we can declare it as "coder.extrinsic('interp3')". But when the block output is the function output of "interp3", it doesn't work anymore. It gives the following error:
"Failed to eliminate a call to the MATLAB function 'interp3'. For non-simulation builds, calls to unsupported MATLAB functions are eliminated if they do not affect function outputs."
What's the way to handle this problem? I shouldn't be the first one to try to do a 3-D interpolation inside embedded Matlab, right?
Many Thanks!

Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!