# ARTS built-in documentation server

## Workspace Method MatrixIdentity

### Description

Returns the identity matrix.
The size if the matrix created is n x n. Default is to return a
true identity matrix (I), but you can also select another value
along the diagonal by setting *value*. That is, the output is
value*I.

**Authors: **Patrick Eriksson

### Synopsis

MatrixIdentity( | out, n, value ) |

### Variables

GOUT | out | (Matrix) | Output matrix |

GIN | n | (Index) | Size of the matrix |

GIN | value | (Numeric, Default: 1) | The value along the diagonal. |