2.2 Creating Matrices

Play media comment.
In the video i did not mention the function: eye. It is a nice one and allows you to easily create a identity matrix, i.e. a square matrix with ones on the diagonal. 

Example: Typing eye(3) in MATLAB, would create the matrix 

LaTeX: \begin{bmatrix}
1 & 0 & 0\\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}[100010001]