The following Matlab project contains the source code and Matlab examples used for allows direct, inline return of any combination of arguments and indices to a function. .
C = chooseargs(f,argidx,idxc,[f_inputs])
chooseargs allows direct selection of any
combination of arguments to a function f
that has the following form: