# ndims

Number of dimensions of an array.

## 📝 Syntaxe

* n = ndims(M)

## 📥 Argument d'entrée

* M - a variable

## 📤 Argument de sortie

* n - a integer value: Number of dimensions of M.

## 📄 Description

n = ndims(M) return the number of dimension of the array M.

M is greater than or equal to 2.

## 💡 Exemple

```matlab
ndims(ones(3, 0))
ndims(3)
ndims([1 2 3 4 5])
ndims(ones(3, 4, 5))
```

## 🔗 Voir aussi

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

## 🕔 Historique

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