Can I generate code from Mapping Toolbox functions with MATLAB Coder 2.3 (R2012b)?

I am looking to generate code from some functions in Mapping Toolbox 3.6 (R2012b) with MATLAB Coder 2.3 (R2012b).
Namely, I am looking for code generation support for 'shaperead', 'shapewrite' and 'shapeinfo'. Is this possible?

 Accepted Answer

Mapping Toolbox functions are not supported for code generation in MATLAB Coder 2.3 (R2012b).
As a workaround, it may be possible to use a combination of built-in MATLAB and C functionality to recreate similar behavior for code generation.
As of R2021a, you can generate C and C++ code using MATLAB Coder for some Mapping Toolbox functions, including:
  • 3-D coordinate and vector transformation functions such as 'ecef2enu', 'geodetic2ned', and 'ecef2enuv'
  • The 'oblateSpheroid' object and 'wgs84Ellipsoid' function
  • The 'wrapToPi', 'wrapTo2Pi', 'wrapTo180', and 'wrapTo360' functions

More Answers (0)

Products

Release

R2021a

Community Treasure Hunt

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

Start Hunting!