afh = anonfcn (13)
afh =
function_handle with value:
@(s)eval(s)
afh ('a')
{Error using eval
Undefined function or variable 'a'.
Error in anonfcn>@(s)eval(s) (line 3)
fh = @(s) eval (s);
}
afh ('b')
{Error using eval
Undefined function or variable 'b'.
Error in anonfcn>@(s)eval(s) (line 3)
fh = @(s) eval (s);
}
nfh = nestfcn (42)
nfh =
function_handle with value:
@nestfcn/nst
nfh ('a')
ans =
42
nfh ('b')
ans =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
diary off