help-octave
[Top][All Lists]
Advanced

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

Aux. functions with multiple outputs


From: Mike B.
Subject: Aux. functions with multiple outputs
Date: Thu, 9 Sep 2010 18:55:54 -0700 (PDT)

Hi All,

Is it possible to define an aux. function which handles multiple outputs?.

For example, for a single output:
function [ a ] = f1( x )
...
endfunction
y = @(x) f1( x );  # aux. function, single output
sin( y )

However if f1 returns multiple outputs:
function [ a,b ] = f1( x )
...
endfunction

how do I define y so I can refer to a and b?.

Thanks,
Mike.






reply via email to

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