Accelerating the pace of engineering and science

# sigmf

Sigmoidal membership function

## Syntax

```y = sigmf(x,[a c])
```

## Description

The sigmoidal function, sigmf(x,[a c]), as given in the following equation by f(x,a,c) is a mapping on a vector x, and depends on two parameters a and c.

$f\left(x,a,c\right)=\frac{1}{1+{e}^{-a\left(x-c\right)}}$

Depending on the sign of the parameter a, the sigmoidal membership function is inherently open to the right or to the left, and thus is appropriate for representing concepts such as "very large" or "very negative." More conventional-looking membership functions can be built by taking either the product or difference of two different sigmoidal membership functions. For more information seedsigmf and psigmf.

## Examples

expand all

### Sigmoidal Membership Function

```x = 0:0.1:10;
y = sigmf(x,[2 4]);
plot(x,y)
xlabel('sigmf, P=[2 4]')
ylim([-0.05 1.05])
```