Use custom class inside embedded Matlab function

2 ビュー (過去 30 日間)
Thang Nguyen
Thang Nguyen 2011 年 4 月 7 日
Hi, I read about call C/C++ function in embedded Matlab function. I would like to know beside function weather I can reuse classes I already wrote in C++ or not? Please let me know how to do it.
Best regards, Thang

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 4 月 7 日
I think you might need to create a regular function to act as a wrapper to your C++ class method, and call that wrapper using eml.ceval. It is not possible to directly call class methods from Embedded MATLAB.

カテゴリ

Help Center および File ExchangeBuild MATLAB Interface to C++ Library についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by