Matlab Classes in shared-dll's

Hi,
First of all I am new at matlab. I am trying to find the ways to run matlab code from our c++ code. First i can use with matlab engine and also succeeded exporting matlab functions as shared dlls but can not figure how to export matlab classes as shared dll. Is there a way to do it and if so how?
Thank you.

 Akzeptierte Antwort

Friedrich
Friedrich am 5 Dez. 2011

0 Stimmen

Hi,
no you can't. You cannot export any MATLAB classes to C/C++.

Weitere Antworten (1)

Umur
Umur am 5 Dez. 2011

0 Stimmen

Thank you. Then is there a common way to use matlab classes from c++?

1 Kommentar

Friedrich
Friedrich am 5 Dez. 2011
Is ML present on the machine? If so you can stay with the ML engine.
If not you have to wrap around functions which call the class functions and keep the variable as global variable.

Melden Sie sich an, um zu kommentieren.

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by