Learn R Programming

dae (version 3.2.30)

mat.I: Forms a unit matrix

Description

Form the unit or identity matrix of order order.

Usage

mat.I(order)

Value

A square matrix whose diagonal elements are one and its off-diagonal are zero.

Arguments

order

The order of the matrix to be formed.

Author

Chris Brien

See Also

mat.J, mat.ar1

Examples

Run this code
    col.I <- mat.I(order=4)

Run the code above in your browser using DataLab