Search code examples
c++visual-studio-2010visual-c++matlabmatlab-deployment

Integrate MATLAB code in Visual Studio 2010 (C++)


I've seen that it is possible to call MATLAB functions from VS2010 (VC++). I was wondering if it is possible to create executable files using VC++ that do not require any MATLAB software on the computer (like the MATLAB Compiler Runtime (MCR))?

I would like to create a program written in VC++ that calls some of the MATLAB functions, but is completely standalone and can run from any Windows computer without the need of any prior MATLAB software to have been installed.

Thanks.


Solution

  • It is not possible to install without MCR in any documented way and I even think that it is not legal.
    However, there are some examples like Imatest, who managed to do it in some of their earlier versions.

    Edit(1)
    I almost forgot about MatlabCoder. If you buy it, it can transform your Matlab code directly into c code. But it will not work with some of the toolboxes, like image processing.