Clear Filters
Clear Filters

Matlab inbuilt functions to cpp code

13 views (last 30 days)
crisdeodates on 26 Feb 2020
Answered: Denis Gurchenkov on 27 Feb 2020
Are there corresponding cpp code files available for matlab inbuilt toolbox functions available? If not, how to convert matlab inbuilt functions (Eg: sonarEmission() from Sensor toolbox) to cpp code?

Answers (1)

Denis Gurchenkov
Denis Gurchenkov on 27 Feb 2020
Here is the list of functions and classes that can be converted to C/C++ using MATLAB Coder:
In particular, sonarEmission appears to be on that list, and the help page for this class confirms that it supports generation of C/++:
Note that you can't just convert sonarEmission to C++. What you do is you write your own function that uses sonarEmission, and then you use MATLAB Coder ("codegen" command) to convert your function, and all other functions and classes it uses (including sonarEmission etc) into C/C++.


Find more on MATLAB 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!