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.
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.
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
FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!