Has anyone used the MATLAB tool to create C / C ++ code? Is the resulting code usable?

We have some researchers who work a lot at MATLAB. We often would like to try their code as part of a large workflow that requires algorithms to be placed in C / C ++ or Python. I saw how MathWorks advertises a tool for creating custom code in C or C ++. How good is the code? Does it support toolbars? I still see this as an early prototyping tool, but I wonder how good the code is. Thoughts?

+8
c ++ matlab
source share
2 answers

In the past, I worked a lot with mathworks in the past. Shortcuts are expensive, but the support is great. We compared the code generated for a specific DSP, and it accounted for 10% of the speed of the manually generated code and took some of the time to generate. Over the past few years, Mathworks has invested heavily in these tool chains, and they are becoming very good. Some toolbars are supported; look at documents online.

+3
source share

The code created by Embedded Coder, in my opinion, is very good, and it is a product that is widely used in industry, especially in automotive applications. It is usually intended to generate code from Simulink for real-time applications. View user stories on the website: http://www.mathworks.co.uk/products/embedded-coder/?s_cid=global_nav .

Toolkit support depends on your requirements. If you need something that uses only standard libraries, support is limited, but if that doesn't matter to you, then you have more success.

A word of warning though: it's expensive.

+1
source share

All Articles