2 Questions and Answers from Youtube demo video on Matlab Coder M scipt conversion to Visual C++ and Qt

(Last Updated On: December 24, 2011)

2 Questions and Answers from Youtube demo video on Matlab Coder M scipt conversion to Visual C++ and Qt

A question came up on a Youtube video.

http://www.youtube.com/watch?v=7FhtqcpAE5o&feature=email&email=comment_received

this is very interesting, I am trying to get Matlab m files converted to C/C++ in order to call them from QT creator. Can you tell about excution speed (not compilation). Is it the same as in Matab? or faster may be as the code gets converted into c++?

my second question is about the converted cpp functions (from m files). Can you access the functions and modify them from Visual C++? Or do you have to go back into Matlab to do it?
thanks in advance man.
Mohamed

I cannot really comment on QT but played with it. I was not a fan but in terms of speed, I would THINK it would be a little slower as there is one more layer to deal with. Your compiled C++ should be much faster as compared to running in Matlab. It depends on how much code you minimize when generated from the Matlab Coder Toolbox Settings.

As for the second question, if the generated C++ code is small to maintain go for it otherwise you will need to modify  the M script file and have Matlab Coder regenerate your C++. The nice thing is you have complete 100% control on your source code at both ends.

Hope that helps and thanks for asking


NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
This entry was posted in Uncategorized and tagged , , , , , , , , , , , , on by .

About caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs