view test/nest/varg_nest.m @ 18669:cf3db95a75f0

axis.m: Fix regression when accepting input handle (cset 5032ac119d52). * axis.m: When setting xlim, ylim, zlim to numeric values the functions must be called with the desired axis handle so that id doesn't always operate on gca.
author Rik <rik@octave.org>
date Thu, 24 Apr 2014 07:13:37 -0700
parents be18c9e359bf
children
line wrap: on
line source

function x = varg_nest (varargin)
  x = abs (f (-5)) + g;

  function x = f (varargin)
    x = abs (varargin{1});
  endfunction

  function x = g
    x = abs (varargin{1});
  endfunction
endfunction