How to call matlab functions from a C/C++ project..???
Show older comments
I have a project written in C/C++ and I want to access some functions from the MATLAB. Is this possible and how.??/
Answers (1)
Prateekshya
on 27 Aug 2024
0 votes
Hello Anuj,
MATLAB Engine API for C++ provides an interface for C++ to launch MATLAB, use MATLAB functions and exchange data. Please refer to the below documentation to get started:
https://www.mathworks.com/help/matlab/calling-matlab-engine-from-cpp-programs.html?s_tid=CRUX_lftnav
For this, you will need a compiler that supports C++11. You can find other supported compilers in the above link.
I hope this helps!
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!