How do I expose the methods of my MATLAB object-oriented class through a C++ shared library with the MATLAB Compiler?
Show older comments
I have defined an object-oriented class in MATLAB using the CLASSDEF keyword and all other necessary MATLAB language object-oriented programming (OOP) constructs. Using the MATLAB Compiler, I would like to create a C++ dynamic-link library that exports a C++ class generated from my MATLAB class, and exposes its methods.
Accepted Answer
More Answers (1)
Alan Frankel
on 16 Jun 2023
0 votes
As of R2023a, you can use the C++ MATLAB Data API Shared Library Support for Strongly Typed MATLAB Code. This is a feature of MATLAB Compiler SDK.
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!