Suppose you want to enter the following 10x10 matrix:
0 | 0 | 0 | 0 | 0 | 1 | 2 | 5 | 3.1 | 2.2 |
0.5 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0.6 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0.95 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0.95 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0.95 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.95 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.95 | 0 |
First, use the zeros function to create a matrix of all zeros. (Note the semi-colon at the end of the command. Without this, the matrix will be printed after you hit Enter.)