Linking MATLAB and C++

What's the difference between using the MATLAB engine and MEX Functions in order to link MATLAB and C++?
Thanks!

 採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 7 月 8 日

0 投票

They work in different directions:
MEX is to call C++ code from the MATLAB environment.
MATLAB Engine is to call MATLAB functionality from the C++ code using the engine API.

1 件のコメント

Caroline
Caroline 2013 年 7 月 8 日
Is there an advantage to using one versus the other, or does it depend on the application?

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

その他の回答 (1 件)

Caroline
Caroline 2013 年 7 月 8 日

0 投票

Thank you!

カテゴリ

ヘルプ センター および File ExchangeCall C++ from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by