I've got a CMEX function in which I call a MATLAB function to get a MATLAB object like this:
mxArray *plhs;mexCallMATLAB(1, plhs, 0, NULL, "getAnObject");
Now, I want to call a method on this object. In MATLAB, I would have done it like this:
obj = getAnObject;obj.aMethod();
How can I solve this in a CMEX function?
P.S.: getAnObject itself is a compiled mex file.