function [z,hasDefuzzMethod] = evaluateCustomDefuzzMethod(defuzzMethod,x,y,varargin) %#codegen
%% EVALUATECUSTOMDEFUZZMETHOD Evaluates custom defuzzification method.
%
%   [Z,HASDEFUZZMETHOD] = EVALUATECUSTOMDEFUZZMETHOD(DEFUZZMETHOD,X,Y)
%   Evaluates X and Y with DEFUZZMETHOD. HASDEFUZZMETHOD is true if
%   DEFUZZMETHOD exists.
%
%   Overload this function in a code generation directory for evaluating a
%   custom defuzzification method. 
%
%   Examples
%     function [z,hasDefuzzMethod] = evaluateCustomDefuzzMethod(defuzzMethod,x,y,varargin) %#codegen
%         z = zeros('like',x);
%         hasDefuzzMethod = false;
%         if isequal(defuzzMethod,uint8('customDefuzzMethod'))
%             z(1) = customDefuzzMethod(x,y,varargin{:});
%             hasDefuzzMethod(1) = true;
%         end
%     end

%   Copyright 2018-2019 The MathWorks, Inc. 

z = zeros('like',x);
hasDefuzzMethod = false;
end