user5779175
user5779175

Reputation:

Transfering and using a Matlab inline function to a c++ mex file

I am trying to generate a mex file for a c++ library, so that i can call its methods directly from matlab.

As my first argument I want to transfer an inline function, for example inline('sin(x)+3').

But now I want to use this function dynamically in my c++ program. There is no method like mxGetInlineFunction(), right? Is there a way I can get my inline item from the array and use it as a math-function in my c++ code?

Thanks in advance!

Upvotes: 2

Views: 217

Answers (1)

xvan
xvan

Reputation: 4855

use mexCallMATLAB() and mexCallMATLABWithTrap()

Upvotes: 1

Related Questions