|
|
|
|
|
Identity Matrix
How to Examples Exercise How to: In Linear Algebra, the identity matrix is a square matrix with one's on the diagonal, and zero's everywhere else. We will learn later in our matrix multiplication section, why it is called this. To quickly form an identity matrix of any size in MATLAB type: A = eye(number of rows (and columns) in matrix) Examples: To form a 10x10 identity matrix, we could tediously type out 10 rows of 10 numbers, remembering to put one's on the diagonal, or we could just type: I = eye(10) Exercise: |