|
From: | Ben Abbott |
Subject: | Re: Is there a way to let @ defined function handle return multiple values? |
Date: | Mon, 01 Jul 2013 05:32:50 +0000 (GMT) |
Hi,
http://www.gnu.org/software/octave/doc/interpreter/Function-Handles.html
I only see @ can be used to define function handles with one return
value. Is it possible to define a function handle to return two
values? Thanks.
fun = @(x,y) deal (x, y);
[a, b] = fun (1, 2)
a = 1
b = 2
[Prev in Thread] | Current Thread | [Next in Thread] |