Linking MATLAB and C++

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

 Akzeptierte Antwort

Shashank Prasanna
Shashank Prasanna am 8 Jul. 2013

0 Stimmen

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 Kommentar

Caroline
Caroline am 8 Jul. 2013
Is there an advantage to using one versus the other, or does it depend on the application?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Caroline
Caroline am 8 Jul. 2013

0 Stimmen

Thank you!

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by