%% Evaluate Membership Function
% Evaluate a generalized bell-shaped membership function across a range of input values from 0 through 10.

x = 0:0.1:10;
mf = fismf("gbellmf",[2 4 6]);
y = evalmf(mf,x);

%
% Plot the evaluation.

plot(x,y)
xlabel('gbellmf, P = [2 4 6]')

% Copyright 2015-2018 The MathWorks, Inc.