Download ro

Transcript
evalmf
Purpose
Generic membership function evaluation.
3evalmf
Synopsis
y = evalmf(x,mfParams,mfType)
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]')
1
0.75
0.5
0.25
0
0
See Also
2
4
6
gbellmf, P = [2 4 6]
8
10
dsigmf, gaussmf, gauss2mf, gbellmf, mf2mf, pimf, psigmf, sigmf, smf, trapmf,
trimf, zmf
3-21