Provide three different methods of generating the matrix a, one method should use the diag()
function, one should use the eye function, and one should use the zeros function.
>> a
a =
2 0 0
0 2 0
0 0 2
Provide three different methods of generating the matrix a, one method should use the diag()
function, one should use the eye function, and one should use the zeros function.
>> a
a =
2 0 0
0 2 0
0 0 2