Linking MATLAB and C++

5 views (last 30 days)
Caroline
Caroline on 8 Jul 2013
What's the difference between using the MATLAB engine and MEX Functions in order to link MATLAB and C++?
Thanks!

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 8 Jul 2013
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 Comment
Caroline
Caroline on 8 Jul 2013
Is there an advantage to using one versus the other, or does it depend on the application?

Sign in to comment.

More Answers (1)

Caroline
Caroline on 8 Jul 2013
Thank you!

Community Treasure Hunt

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

Start Hunting!