Hi
Using bellow command we can easily call a function(here "foo.m") which was wrote in MATLAB from C++.
mexCallMATLAB(nlhs, plhs, nrhs, prhs, "foo")
But what if "foo" is a method of a class?
classdef Foo < handle ... function out = foo(obj, in) endend
Is there any straightforward or trick to call member function from C++?
Best Answer