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,
the symmetry points for both the new and old membership functions.
Note: 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 does not look the same as it did originally.
The input arguments for
mf2mf are as follows:
inParams — Parameters of
the membership function you are transforming from, specified as a
inType — Type of membership
function you are transforming from.
outType — Type of membership
function you are transforming to.
You can specify
any of the following membership functions types:
|Membership function type||Description||For more information|
|Generalized bell-shaped membership function|
|Gaussian membership function|
|Gaussian combination membership function|
|Triangular membership function|
|Trapezoidal membership function|
|Sigmoidal membership function|
|Difference between two sigmoidal membership functions|
|Product of two sigmoidal membership functions|
|Z-shaped membership function|
|Pi-shaped membership function|
|S-shaped membership function|
x = 0:0.1:5; mf1 = [1 2 3]; mf2 = mf2mf(mf1,'gbellmf','trimf'); plot(x,gbellmf(x,mf1),x,trimf(x,mf2)) legend('Generalized bell-shaped','Triangle-shaped','Location','South') ylim([-0.05 1.05])