Table Of Contents

eye

Version:
    Last Modified: January 9, 2017

    Generates an identity matrix. An identity matrix has ones on the main diagonal and zeros elsewhere.

    Syntax

    c = eye
    c = eye(n)
    c = eye(m, n)

    Inputs

    m

    Number of rows for the identity matrix. m is an integer.

    n

    Number of columns for the identity matrix. n is an integer.

    Outputs

    c

    Identity matrix with m rows and n columns. c = eye returns a 1. c = eye(n) returns an n-by-n matrix.

    C = eye(3, 3)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics