Question

Is Matlab Coder Toolbox generated C++ code tight and minimal? Has anyone evaluated the C++ code generated by Matlab’s Coder toolbox? Is it tight and minimal? I have been told a lot of the generated code can be quite bloated which does not make it a low latency quality for use in a high frequency trading environment. Is there truth to this claim? This is even if you build the code at the Coder’s minimal settings. The Matlab M scripts I would use is M core only so I would not be using any extended Matlab toolboxes like Econmetrics. Thanks for any insight

Was it helpful?

Solution

It can be made tight and minimal if you know what you're doing, and you write your MATLAB in the right way in the first place (which includes not only very few toolboxes, but also restricting yourself to a subset of the MATLAB language). There are plenty of people using MATLAB-generated C code in algorithmic and high-frequency trading.

If you're serious about finding out exactly how tight and minimal it can be made, how you'd need to change your MATLAB coding style, and how difficult that might be, I would really recommend getting in touch with MathWorks. MATLAB Coder is a complex product, and people typically need advice to get the most out of it.

[Disclaimer, in case the above sounds like a sales pitch - I'm an ex-MathWorker, but I no longer have any interest in trying to sell you anything. It's just my 2cents of advice.]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top