# ee.Array.matrixDiagonal

Computes the diagonal of the matrix in a single column.

<br />

| Usage | Returns |
|---|---|
| `Array.matrixDiagonal()` | Array |

| Argument | Type | Details |
|---|---|---|
| this: `input` | Array | The input array. |