.NET Delegates With out and ref Type
Arguments
The MATLAB® rules for mapping out and ref types
for delegates are the same as for methods.
For example, this C# statement declares a delegate with a ref
argument:
public delegate void delref(ref Double refArg);The signature for an equivalent MATLAB delegate function maps refArg as both RHS and LHS
arguments:
function refArg = myFunc(refArg)This C# statement declares a delegate with an out argument:
public delegate void delout(
Single argIn,
out Single argOut);The signature for an equivalent MATLAB delegate function maps argOut as an LHS
argument:
function argOut = myFunc(argIn)