Calling matlab from C++

前端 未结 4 590
北荒
北荒 2020-12-10 07:23

I tried to call matlab from a .cpp file. I used the following command to compile engdemo.cpp which includes \"engine.h\"

g++ engde         


        
4条回答
  •  -上瘾入骨i
    2020-12-10 08:16

    The problem is improper specification of include files and folders (i.e. for libraries and link files) and a few additional dependencies.

    You can make use of a simple demo code for the interfacing C/C++ and MATLAB is given here, so as to understand what needs to be done.

    Also you need to use a CMAKELISTS.TXT file with suitable settings for MATLAB, for which a good tutorial is available here.

提交回复
热议问题