Fuzzy Logic Toolbox | ![]() ![]() |
Generic membership function evaluation.
Syntax
Description
evalmf
evaluates any membership function, where x is the variable range for the membership function evaluation, mfType
is a membership function from the toolbox, and mfParams
are appropriate parameters for that function.
If you want to create your own custom membership function, evalmf
will still work, because it evaluates any membership function whose name it doesn't recognize.
Examples
x=0:0.1:10; mfparams = [2 4 6]; mftype = 'gbellmf'; y=evalmf(x,mfparams,mftype); plot(x,y) xlabel('gbellmf, P=[2 4 6]')
![]()
See Also
dsigmf
, gaussmf
, gauss2mf
, gbellmf
, evalmf
, mf2mf
, pimf
, psigmf
, sigmf
, smf
, trapmf
, trimf
, zmf
![]() | evalfis | fcm | ![]() |