Write a Matlab script mfile how 055m to create the matrices
Write a Matlab script m-file, how 05_5.m, to create the matrices b, c, d, and g by performing elementary matrix operations on matrix a. Verify your answer by running the script a = |2 8 12 4 10 20 24 18 6|; b = |2 4 24 8 10 18 12 20 6|; c = |12 8 12 4 20 20 24 18 16|; d = |4 64 144 16 100 400 576 324 36|; g = |2 8 12 8 80 240 24 18 6|
Solution
For matrix b
a = [ 2 8 12 ; 4 10 20 ; 24 18 6 ]
b = a\'
Solution
a =
2 8 12
4 10 20
24 18 6
b =
2 4 24
8 10 18
12 20 6
