view test/bug-59661/bug59661.m @ 31220:5b021ecc8bfe stable

pie3: Fix "Too many input" args error. * __pie__.m (update_text_pos): Change prototype to match the expected number of input arguments.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 31 Aug 2022 22:01:39 +0200
parents 370b5ded5e6a
children
line wrap: on
line source

classdef bug59661 < handle

  properties
    p = [];
  endproperties

  methods

    function o = bug59661 (varargin)
      o.p = [varargin{:}];
    endfunction

    function res = eq (a, b)

      if (numel (a.p) > 1 && numel (b.p) > 1 && ! isequal (size (a.p), size (b.p)))
        res = false;
        return;
      endif

      if (isequal (size (a.p), size (b.p)))
        res = eq (a.p, b.p);
      else
        res = bsxfun (@eq, a.p, b.p);
      endif

    endfunction

  endmethods
endclassdef