Issu using startMATLAB in C++ with "MatlabEngine.hpp" in r2017b

조회 수: 1 (최근 30일)
Florian Segura
Florian Segura 2017년 10월 19일
댓글: Ottavia Rossini 2020년 6월 23일
Hello,
I'm trying to open a Matlab session from c++ with Visual Studio 2017 using the new engine "MatlabEngine". After the successful inclusion of "MatlabEngine.hpp", I have simply used the command below my main function:
std::unique_ptr<MATLABEngine> matlabPtr = startMATLAB();
I faced an issue during the execution of: matlab::engine::initSession --> matlab::engine::startMATLAB --> matlab::engine::startMATLABAsync --> engine_create_session. I receive an exception with a null pointer.
Can someone give me a hand on this problem? I'm using Matlab r2017b on a Windows 10 computer with Visual Studio 2017. Many thanks in advance,
Florian

답변 (2개)

Ryo Hachiuma
Ryo Hachiuma 2019년 1월 25일
Hi, I also met this error. Did you solve it?

MelKor
MelKor 2018년 5월 29일
I have the same problem, and even worst, my program was working OK and from one day to another this exception show up.
If you solve the problem, please let me know.
regards,
JP
  댓글 수: 1
Florian Segura
Florian Segura 2019년 1월 28일
Hello,
I haven't tried recently, but maybe I will test new version of Matlab to see if something has changed.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call MATLAB from C++에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by