Matlab Classes in shared-dll's

7 次查看(过去 30 天)
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.

采纳的回答

Friedrich
Friedrich 2011-12-5
Hi,
no you can't. You cannot export any MATLAB classes to C/C++.

更多回答(1 个)

Umur
Umur 2011-12-5
Thank you. Then is there a common way to use matlab classes from c++?
  1 个评论
Friedrich
Friedrich 2011-12-5
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Call MATLAB from C 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by