help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aux. functions with multiple outputs


From: c.
Subject: Re: Aux. functions with multiple outputs
Date: Fri, 10 Sep 2010 12:35:42 +0200


On 10 Sep 2010, at 12:22, Mike B. wrote:

Thanks for replying.
How do I refer to each of the outputs (a and b in the example)?.

Mike.

>> function [a, b] = f1(x)
a = x.^2;
b = x;
endfunction
>> y = @f1;
>> [a, b] = y (3)
a =  9
b =  3
>>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]