0

I have a c++ code, there I need to do few matrix calculations. Writing a script in Matlab is so much easier than write a "real" code in c++.

Suppose the function in Matlab is called "Build_table(x)", there x is a real number, located in a file named "Build_table.mat". How to call this function via c++?

I work in Bash remote server and compile with "g++ -o" if it is important. The server has Matlab, c, c++ and other compilers installed.

Michael L.
  • 443
  • 4
  • 14
  • 3
    [How to Call Matlab Functions from C++](https://stackoverflow.com/questions/6429243/how-to-call-matlab-functions-from-c). and [Call MATLAB Functions from C++](https://www.mathworks.com/help/matlab/matlab_external/call-matlab-functions-from-c-1.html). – Jason Nov 03 '22 at 18:19

0 Answers0