How to convert matlab code to c/c++ code?

3 views (last 30 days)
anu
anu on 30 Mar 2015
Answered: Denis Gurchenkov on 9 Apr 2015
In my algorithms,there are imresize,imfilter and many more functions that are not working with matlab coder.so Is there another way?

Answers (1)

Denis Gurchenkov
Denis Gurchenkov on 9 Apr 2015
I'm not aware of any other tool or product that converts MATLAB code to C/C++, other than MATLAB Coder. Your options are:
  • Wait for future release where imresize, imfilter etc are supported for code generation. More functions are supported for code generation with each release (you can also consider contacting MathWorks tech support and explicitly requesting that the functions you need be supported. Development team would be happy to hear that, as it helps them to set right priorities).
  • Implement suitable versions of those functions yourself (either directly in C/C++, or in codegenable subset of MATLAB language). Presumably you don't need imresize and imfilter in full, just some concrete cases. Is there a freeware C library that you can call to, using coder.ceval?
  • Reconsider the need for C/C++. For instance, many people who want to deploy their code can use MATLAB Compiler instead.
I know this sounds harsh, I'd be happy if someone could offer a more comforting alternative.
-- Denis

Community Treasure Hunt

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

Start Hunting!

Translated by