This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


S-shaped membership function


y = smf(x,[a b]) 


This spline-based curve is a mapping on the vector x, and is named because of its S-shape. The parameters a and b locate the extremes of the sloped portion of the curve, as given by:



collapse all

x = 0:0.1:10;
y = smf(x,[1 8]);
xlabel('smf, P = [1 8]')
ylim([-0.05 1.05])

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a