How can I create a function handle to a function that is private defined within a class?

I want to pass a private function handle to a variable, even within the same class, but the MATLAB answer is that there is no public field called this fn. Does anybody know if it is possible? Thanks !

댓글 수: 2

Can you share your code? Because ideally you should be able to call a private method within the same class.
Thank you, but I've solved it. The problem wasn't on the privileges themselves but on the class definition. I need to create first a class object before obtaining the function address. Sorry for the inconvenience

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Function Creation에 대해 자세히 알아보기

질문:

2018년 9월 5일

댓글:

2018년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by