Matlab inbuilt functions to cpp code

1 回表示 (過去 30 日間)
crisdeodates
crisdeodates 2020 年 2 月 26 日
回答済み: Denis Gurchenkov 2020 年 2 月 27 日
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?

回答 (1 件)

Denis Gurchenkov
Denis Gurchenkov 2020 年 2 月 27 日
Here is the list of functions and classes that can be converted to C/C++ using MATLAB Coder: https://www.mathworks.com/help/coder/ug/functions-and-objects-supported-for-cc-code-generation.html
In particular, sonarEmission appears to be on that list, and the help page for this class confirms that it supports generation of C/++: https://www.mathworks.com/help/fusion/ref/sonaremission-class.html
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++.

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by