# isreal

Return true if all imaginary part is a zero array.

## 📝 Syntaxe

* res = isreal(var)

## 📥 Argument d'entrée

* var - a variable

## 📤 Argument de sortie

* res - a logical: true or false

## 📄 Description

isreal returns a logical true if all imaginary part is a zero array.

## 💡 Exemples

```matlab
A = 1 + 0i;
res = isreal(A)
```

```matlab
B = uint8(3);
res = isreal(B)
```

```matlab
A = single([3, i]);
res = isreal(A)
```

## 🔗 Voir aussi

[isa](https://nelson-9.gitbook.io/Nelson/markdown/fr/types/isa), [isint8](https://nelson-9.gitbook.io/Nelson/markdown/fr/types/isint8).

## 🕔 Historique

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