# std

Standard deviation

## 📝 Syntax

* S = std(M)

## 📥 Input argument

* M - a vector or matrix

## 📤 Output argument

* S - Standard deviation of M.

## 📄 Description

S = std(M) returns the standard deviation of the elements of M along the first array dimension whose size does not equal 1.

## 💡 Example

```matlab
M = [4 -7 3; 1 4 -2; 10 7 9];
S = std(M)
```

## 🔗 See also

[var](https://nelson-9.gitbook.io/Nelson/markdown/en/statistics/var), [mean](https://nelson-9.gitbook.io/Nelson/markdown/en/statistics/mean).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.15.0  | initial version |
