Call non-static class functions from mex

3 ビュー (過去 30 日間)
Chris
Chris 2013 年 9 月 13 日
Hi,
I have some Matlab OOP Code:
classdef foo
properties
a;
end
methods
function obj = fun(obj)
a = a + 1; % you get the idea
end
end
end
I am rewriting some functions that access this class in MEX/C. Somewhere in this code, which I am rewriting, there is the line:
someFooInstance = someFooInstance.fun;
My question now is: Is there a way to call the function fun out of my C-code? I know about the function mexCallMATLAB - but I am unsure whether and how to use this function with non-static member functions. Any advice would be great.
Note: Simple rewriting this member function fun is not an option in this case

回答 (0 件)

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by