I may be mistaken, but here is my understanding...
You can't convert "matlab code" to "c++ code". What you can do is write c++ code and then give it a matlab interface and "compile" it with the Matlab MEX compiler. The result is a function that you can call from matlab but is actually written in c++.
Look up "matlab mex" and you may find more details.
Good luck,
David
daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 204