view test/nest/recursive_nest.m @ 31237:e3016248ca5d

uifigure.m: Call set () only if varargin is not empty (bug #63088) * uifigure.m: Call set () only if varargin is not empty.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 21 Sep 2022 09:55:32 -0400
parents fc4bb4bd1d5e
children
line wrap: on
line source

## recursive_nest.m
function x = recursive_nest ()
  global recursive_nest_inc = 1
  x = 5;
  f (20);

  function f (n)
    if (n > 0)
      x = x + recursive_nest_inc;
      f (n - 1);
    end
  endfunction
endfunction