Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mf2mf

Translate parameters between membership functions

Syntax

outParams = mf2mf(inParams,inType,outType) 

Description

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.

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 row vector.

  • inType — Type of membership function you are transforming from.

  • outType — Type of membership function you are transforming to.

You can specify inType and outType as any of the following membership functions types:

Membership function typeDescriptionFor more information
'gbellmf'Generalized bell-shaped membership functiongbellmf
'gaussmf'Gaussian membership functiongaussmf
'gauss2mf'Gaussian combination membership functiongauss2mf
'trimf'Triangular membership functiontrimf
'trapmf'Trapezoidal membership functiontrapmf
'sigmfSigmoidal membership functionsigmf
'dsigmfDifference between two sigmoidal membership functionsdsigmf
'psigmfProduct of two sigmoidal membership functionspsigmf
'zmf'Z-shaped membership functionzmf
'pimf'Pi-shaped membership functionpimf
'smf'S-shaped membership functionsmf

Examples

collapse all

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])

Introduced before R2006a

Was this topic helpful?