Learn R Programming

matlab (version 0.7-6)

eye: MATLAB eye function

Description

Create an identity matrix.

Usage

eye(n, m = n)

Arguments

n, m
dimensions for the result

Value

  • Returns matrix of order 1. Defaults to square if second dimension argument m not provided.

Examples

Run this code
eye(3)

Run the code above in your browser using DataLab