# num2bin

Convert number to binary representation.

## 📝 Syntaxe

* R = num2bin(M)

## 📥 Argument d'entrée

* M - a variable: logical, integer, single or double real full matrix.

## 📤 Argument de sortie

* R - result of num2bin: char array.

## 📄 Description

num2bin returns a char array giving the literal bit representation of a number.

## Fonction(s) utilisée(s)

C++ std::bitset

## 📚 Bibliographie

<http://www.oxfordmathcenter.com/drupal7/node/43>

## 💡 Exemple

```matlab
X = [65535 128; 1 0]
Y = num2bin(X)
```

## 🔗 Voir aussi

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

## 🕔 Historique

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