# gaussmf

Gaussian curve membership function

## Syntax

```y = gaussmf(x,[sig c])
```

## Description

The symmetric Gaussian function depends on two parameters $\sigma$ and c as given by

$f\left(x;\sigma ,c\right)={e}^{\frac{-{\left(x-c\right)}^{2}}{2{\sigma }^{2}}}$

The parameters for gaussmf represent the parameters $\sigma$ and c listed in order in the vector [`sig c`].

## Examples

collapse all

### Gaussian Membership Function

```x = 0:0.1:10; y = gaussmf(x,[2 5]); plot(x,y) xlabel('gaussmf, P=[2 5]') ```