help-octave
[Top][All Lists]
Advanced

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

Re: How to use varargout?


From: c.
Subject: Re: How to use varargout?
Date: Fri, 8 Aug 2014 08:14:47 +0200

On 8 Aug 2014, at 06:25, Terry Duell <address@hidden> wrote:

> so, is it possible to call myfunc as follows;
> [b1,,b3,,b5] = myfunc(a,b,c)
> where I'm looking to output a1, a3, and a5 only?
> I realise that the syntax, above, throws an error, so I'm looking for the 
> right way to do it, if it can be done.

the correct syntax is :

  [b1,~,b3,~,b5] = myfunc(a,b,c)

HTH,
c.


reply via email to

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