embedding MATLAB into C++ and vice versa

Hi all,
I would like to know if there are books or materials that explain how to create/implement interactions between MATLAB and C++.
Thanks in advance, Vigen

回答 (2 件)

Wayne King
Wayne King 2012 年 5 月 8 日

0 投票

Have you looked at the MATLAB documentation for this?
For example:
Ken Atwell
Ken Atwell 2012 年 5 月 9 日

0 投票

The first thing you need to decide is, which language will be the caller and which the callee? That is, will you start your program from MATLAB and call into C++, or will you start from C++ and call into MATLAB? Depending on the answer, the tools you use will be different.
  • If you are starting from C++ and calling into MATLAB, MATLAB Engine is probably what you want. If you have a license of MATLAB Compiler, that is another option.
  • If you are starting in MATLAB and calling C++, your options are MEX-Files and loadlibary. If you are on Windows, .NET and COM objects may be further options.
Here is the starting point in the MATLAB documentation for much of this: <http://www.mathworks.com/help/techdoc/matlab_external/bp_kqh7.html>
Good luck.

カテゴリ

ヘルプ センター および File ExchangeFinancial Toolbox についてさらに検索

タグ

質問済み:

2012 年 5 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by