Calling methods of C++ class in MEX from MATLAB
问题 I have a DLP kit which I need to control via MATLAB using a C++ API. Say, I have functions/methods using C/C++ for {load_data, load_settings,display_data} in a mex file named dlp_controller.cpp/.c. I know I can call dlp_controller(); with MATLAB. Is there a way I can call the method of this mex from MATLAB directly? Say my dlp_controller.cpp mex looks as: class dlp{ ... } dlp::dlp{ ... } dlp::load_data{ ... } dlp::load_settings{ ... } dlp::display_data{ ... } void mexFunction(int nlhs,