help-octave
[Top][All Lists]
Advanced

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

varargin daisy-chaining


From: Pascal Dupuis
Subject: varargin daisy-chaining
Date: Thu, 22 Nov 2007 09:38:16 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

Hello,

I wanted to wrap a function call in another one, adding some argument
through the varargin mechanism. I wrote this code:

function resu = outer(varargin)

  %# add supplemental terms in the varargin list         
  varargin = {"some_name", some_val, varagin{:}}

  %# expand once again varargin to have a list, and not a single cell
  resu = inner(varagin{:})
endfunction

It does work, but is it the right way to add supplemental terms to the
varargin list ? Will this work with future releases of octave ?

TIA

Pascal Dupuis

-- 


reply via email to

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