I have a long C ++ code and I want to call it from MATLAB.
I read that using MEX files, calling large pre-existing C / C ++ and Fortran routines from MATLAB without rewriting them as MATLAB functions is possible.
However, MEX files are cumbersome and apparently all the code needs to be changed. Also, I am having problems calling the C / C ++ compiler from the MATLAB command line. In particular, MATLAB asks
Select a compiler: [1] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2013a\sys\lcc [2] Microsoft Visual C++ 2010 in D:\Program Files\Microsoft Visual Studio 10.0
but my code is written in Borland C ++, but MATLAB could not recognize Borland as a compiler.
Is there any way simpler than what I'm doing now to integrate C / C ++ codes into MATLAB using MEX files?
source share