Overloaded feval function with cfit object when using Compiler
Show older comments
I'm attempting to compile an m-file that uses the overloaded feval or predict MATLAB functions.
My code currently evaluates a cfit object loaded from a .mat file the following way:
load some_cfit_object.mat
y = feval(some_cfit_object, x);
This works perfectly fine in MATLAB. However, once compiled, I get the following error when running the dll:
"Function to evaluate must be represented as a string scalar, character vector, or function_handle object".
This happens, because the MCR is using the generic feval function instead of the @cfit/feval function.
What is the best way to solve this issue?
Accepted Answer
More Answers (0)
Categories
Find more on Big Data Processing 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!