| Fuzzy Logic Toolbox | ![]() |
Translate parameters between membership functions
outParams = mf2mf(inParams,inType,outType)
This function translates any built-in membership function type into another, in terms of its parameter set. In principle, mf2mf mimics the symmetry points for both the new and old membership functions. Occasionally this translation results in lost information, so that if the output parameters are translated back into the original membership function type, the transformed membership function will not look the same as it did originally.
The input arguments for mf2mf are as follows:
inParams: the parameters of the membership function you are transforming
inType: a string name for the type of membership function you are transforming
outType: a string name for the new membership function you are transforming to
x=0:0.1:5; mfp1 = [1 2 3]; mfp2 = mf2mf(mfp1,'gbellmf','trimf'); plot(x,gbellmf(x,mfp1),x,trimf(x,mfp2))

dsigmf, gaussmf, gauss2mf, gbellmf, evalmf, pimf, psigmf, sigmf, smf, trapmf, trimf, zmf
| mam2sug | mfedit | ![]() |
© 1994-2005 The MathWorks, Inc.