# sign

Find the sign function of a number.

## 📝 Syntaxe

* R = sign(M)

## 📥 Argument d'entrée

* M - a variable

## 📤 Argument de sortie

* R - result of sign.

## 📄 Description

sign find the sign function of a number.

-1 if the corresponding element of M is less than 0.

0 if the corresponding element of M equals 0.

1 if the corresponding element of M is greater than 0.

If input argument is a complex number, sign computes M ./ abs(M).

## 💡 Exemple

```matlab
V = [-1 0 15 NaN Inf];
sign(V)
```

## 🔗 Voir aussi

[conj](https://nelson-9.gitbook.io/nelson/markdown/fr/elementary_functions/conj), [abs](https://nelson-9.gitbook.io/nelson/markdown/fr/elementary_functions/abs).

## 🕔 Historique

| Version | 📄 Description   |
| ------- | ---------------- |
| 1.0.0   | version initiale |
