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?
  1 件のコメント
Ottavia Rossini
Ottavia Rossini 2020 年 6 月 23 日
I have the same exact problem, did you manage to 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 Center および File ExchangeCall MATLAB from C++ についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by