문제

I have 2 separate functions which one is in MS visual C++ and another is in Matlab. How do I execute the Matlab file in MS VISUAL? Is there a windows function to load the .m file and execute it straightly?

도움이 되었습니까?

해결책

Two ways to run Matlab code in C++:

  1. Call MATLAB Engine directly.

    The target machine needs to have the MATLAB installed. Check out Call MATLAB Functions from C and C++ Applications for more info and examples.

  2. Distribute MATLAB code into independent shared library (dlls).

    The target machine needs to have the MATLAB compiler runtime. Check out here on how to do this (with detail steps and example).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top