view test/fcn-handle/bug57941b.m @ 31221:f5755dbacd8d

maint: merge stable to default
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 31 Aug 2022 22:04:02 +0200
parents 23fe97205db5
children
line wrap: on
line source

function [fh1, fh2] = bug57941b (A)
  fh1 = @nested1;
  function z = nested1 (x)
    z = A * x;
  end
  fh2 = @nested2;
  function z = nested2 (x,y)
    z = A * x .* y;
  end
end