function [y,hasMFType] = evaluateCustomMF(mfType,x,params,varargin) %#codegen
%% EVALUATECUSTOMMF Evaluates custom membership functions.
%
%   [Y,HASMFTYPE] = EVALUATECUSTOMMF(MFTYPE,X,PARAMS) Evaluates X with
%   MFTYPE using PARAMS to determine output Y. Default value of Y must be
%   -1. HASMFTYPE is true if MFTYPE exists.
%
%   This function needs to be overloaded in a code generation directory for
%   evaluating custom membership functions.
%
%   Examples
%     function [y,hasMFType] = evaluateCustomMF(mfType,x,params,varargin) %#codegen
%         y = -ones(size(x),'like',x);
%         hasMFType = false;
%         if isequal(mfType,uint8('customMF'))
%             y(:) = customMF(x,params,varargin{:});
%             hasMFType(1) = true;
%         end
%     end

%   Copyright 2018 The MathWorks, Inc. 

y = -ones(size(x),'like',x);
hasMFType = false;
end