Matlab Classes in shared-dll's

조회 수: 7 (최근 30일)
Umur
Umur 2011년 12월 5일
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