[Solved] MATLAB: Undefined function for input arguments [closed]


You should have setArray defined-

methods
    function setArray(h)
      %% code
    end
end

solved MATLAB: Undefined function for input arguments [closed]