Interface C++ program to MATLAB

Hi everyone, I am in a bit of a pain here.
I am currently working on a massive C++ program, which I need to interface with MATLAB. Sofar, my plan is to create a standalone .dll or .exe file from the C++-program, and let the program load all the paramteres (there is a bunch of paramteres) along with an jpeg-image directly from windows. But now my challenge is to have the .exe-file (or similar) return a bool to my script in MATLAB. How can I do this, and is there any easier approach to solving this?
I really hope that you guys can help me!

1 件のコメント

Geoff Hayes
Geoff Hayes 2014 年 8 月 21 日
See Oliver Woodford's example of a MATLAB wrapper for a C++ class from the File Exchange,

サインインしてコメントする。

回答 (1 件)

Adam
Adam 2014 年 8 月 21 日

0 投票

You would need to have a mex wrapper calling your front end function from your C++ dll, then return a boolean from that mex function back to Matlab.

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

タグ

質問済み:

Bo
2014 年 8 月 21 日

コメント済み:

2014 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by