Why is the function "distance" not supported for code generation in MATLAB R2025b?
Show older comments
I’m trying to use the Mapping Toolbox function distance in a MATLAB Function block within a Simulink model that will be compiled into a shared object. I encountered the error:
Function 'distance' not supported for code generation.
Is there another approach or function I can use to achieve the same functionality?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder 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!