How to compile Matlab class into C lib?
The origin of this question is from here How to use "global static" variable in matlab function called in c . I'm trying to encapsulate the "global variable" into an object. However I don't know how to export the matlab class to c++ using MATLAB Compiler (mcc) To do this I just tried the standard command Matlab Command mcc -W cpplib:Vowel4 -T link:lib Vowel4.m Matlab Script classdef Vowel4 properties x y end methods Vowel4 A B end end The generated lib is actually stand-alone functions rather than c++ class. How can I compile classes in Matlab into c++ classes? I've been searching for an