Classdef: Difference between revisions

Jump to navigation Jump to search
431 bytes added ,  17 June 2015
function handles in OOP context
(immutable property set access not supported in 4.0.0)
(function handles in OOP context)
Line 37: Line 37:


Use "private" properties as workaround.
Use "private" properties as workaround.
* Function handles to package methods and static class methods.
For example if we have <code>+mypackage/myfunc.m</code>, creating a function handle as <code>fh = @mypackage.myfunc</code> won't work.
As a workaround, we can create an indirection using an anonymous function <code>fh = @(varargin) mypackage.myfunc(varargin{:})</code>.
Similarly for static class methods where <code>fh = @MyClass.myfunc</code> isn't yet supported.


==== supported ====
==== supported ====
14

edits

Navigation menu