How can I change the format to NOT display a matrix like this:
1.0e+003 *
3.1251 0 0 0 0 0 0 0 0 0
0 3.1251 0 0 0 0 0 0 0 0
0 0 3.1251 0 0 0 0 0 0 0
0 0 0 3.1251 0 0 0 0 0 0
0 0 0 0 3.1251 0 0 0 0 0
0 0 0 0 0 3.1251 0 0 0 0
0 0 0 0 0 0 3.1251 0 0 0
0 0 0 0 0 0 0 3.1251 0 0
0 0 0 0 0 0 0 0 3.1251 0
0 0 0 0 0 0 0 0 0 3.1251
but instead to include the 1.0e+003 into every double so that the matrix looks like 3125 along the diagonal?
You can get the output you want if you change the format to
shortG(based on Example 5 of the documentation):