Matlab engine for java: Calling functions from class objects

I'm currently trying to fiddle with the Matlab engine for Java. So far I'm able to call Matlab functions and self-written functions (with engine.feval(0, "matlabFunction"). But as soon as I try to call a function from a class object (with "engine.feval(0, "matlabClass.classFunction);") I get an error "Unknown function or variable". In Matlab, the class function works fine and I can call the very same function with "engine.eval("matlabClass.classFunction");" without problems, so I assume the problem is not on the Matlab side.
Is it possible at all to call a function from within a matlab class object with the matlab engine? If yes, can someone give me a hint on how to do that?

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Call MATLAB from Java 的更多信息

产品

版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by