help-octave
[Top][All Lists]
Advanced

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

Re: Synonym


From: Doug Stewart
Subject: Re: Synonym
Date: Wed, 8 Apr 2020 08:03:06 -0400



On Wed, Apr 8, 2020 at 7:35 AM Ian McCallion <address@hidden> wrote:
What is the right syntax for providing a function which does nothing except call another function with the same parameters and returns the same values back.

The function below passes the parameters through, but getting returned values back does not work. I've tried various incantations without success

   function [varargout] = short(varargin)
       varargout = verylongame(varargin){:})
    endfunction

Cheers... Ian

this seems to work!

 function [varargout2] = short(varargin)
       varargout = verylongname(varargin{:})
       varargout2=varargout(:)
    endfunction

--
DASCertificate for 206392


reply via email to

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