# ee.Image.matrixToDiag

Computes a square diagonal matrix from a single column matrix.

<br />

| Usage | Returns |
|---|---|
| `Image.matrixToDiag()` | Image |

| Argument | Type | Details |
|---|---|---|
| this: `value` | Image | The image to which the operation is applied. |