Key to mAtLaB Exercise 2 School of Mathematical Sciences Xiamen University httplgdipke.xmuedu >>A=[121;242;211},B=[312;122,314:C=A+iB 1).C= 1.0000+3.0000i +1.000011.0000+2.00001 2.0000+1.00001 +2.000012.0000+2.0000i 2.0000+3.0000i +1.000011.0000+4.0000 1.00003.000012.0000-1.0000120000-3.0000i 2.0000-1.000014.0000-2000011.0000-1.0000i 1.0000-20000120000-20000110000-400001 ans 1.0000+3.00002.0000+1.0000120000+3.0000i 2.0000+1.0000140000+2.000011.0000+10000 1.0000+2.000012.0000+2000011.0000+4.0000i The first matrix is the complex conjugate transpose of C while the second one is the transpose of C. Because the elements of C are complex, the results are different >>A ans The first matrix is equal to the second one 3).>inv(A) Warning: Matrix is singular to working precision. ans InfInf In -0.0727-0.14550.6364 0.12730.2545-0.3636Key to MATLAB Exercise 2 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu. Key to Ex25 10. >> A=[1 2 1; 2 4 2; 2 1 1]; B=[3 1 2; 1 2 2; 3 1 4]; C=A+i*B 1).C = 1.0000 + 3.0000i 2.0000 + 1.0000i 1.0000 + 2.0000i 2.0000 + 1.0000i 4.0000 + 2.0000i 2.0000 + 2.0000i 2.0000 + 3.0000i 1.0000 + 1.0000i 1.0000 + 4.0000i >> C' ans = 1.0000 3.0000i 2.0000 1.0000i 2.0000 3.0000i 2.0000 1.0000i 4.0000 2.0000i 1.0000 1.0000i 1.0000 2.0000i 2.0000 2.0000i 1.0000 4.0000i >> C.' ans = 1.0000 + 3.0000i 2.0000 + 1.0000i 2.0000 + 3.0000i 2.0000 + 1.0000i 4.0000 + 2.0000i 1.0000 + 1.0000i 1.0000 + 2.0000i 2.0000 + 2.0000i 1.0000 + 4.0000i The first matrix is the complex conjugate transpose of C while the second one is the transpose of C. Because the elements of C are complex, the results are different. 2). >> A A = 1 2 1 2 4 2 2 1 1 >> A' ans = 1 2 2 2 4 1 1 2 1 >> A.' ans = 1 2 2 2 4 1 1 2 1 The first matrix is equal to the second one. 3). >> inv(A) Warning: Matrix is singular to working precision. ans = Inf Inf Inf Inf Inf Inf Inf Inf Inf >> pinv(A) ans = 0.0727 0.1455 0.6364 0.1273 0.2545 0.3636