Question: Programming Language is MATLAB. here q4 all Q.3 (3 marks) Given the following matrix T below. [, 21 T = X2 Y2 22 [x; 231
here q4 allQ.3 (3 marks) Given the following matrix T below. [, 21 T = X2 Y2 22 [x; 231 (a) Show how you can use MATLAB to declare matrix T as a magic square. What is the value of sumsum(T))? (2 marks) (b) Show how you can determine if the matrix T is a singular matrix? (3 marks) Q.4 Figure Q4 shows a arbitrary shape. The coordinates are represented in a set of linear equations as follows: X1,71 2.72 Xs.ys X4,74 Figure Q4. X1 + 8x2 + 4x3 + 9x4 + 9x5 = 20 12x1 + x2 + 5x3 + 3x4 + 8x5 = 12 X1 + 10x2 + xy + 10x4 + 7xs = 30 11x + 2x2 + 4x3 + x4 + 6x3 = 14 13x1 + 5x2 + 2x3 + 4x4 + 5x5 = 8 Q.4 Figure Q4 shows a arbitrary shape. The coordinates are represented in a set of linear equations as follows: X1,Y10 2.72 Xs,y X4,74 3,73 Figure Q4. X1 + 8x2 + 4x3 + 9x4 + 9x5 = 20 12x + x2 + 5x3 + 3x, + 8x = 12 X1 + 10x2 + x3 + 10x4 + 7x5 = 30 11x + 2x2 + 4x3 + x4 + 6x3 = 14 13x1 + 5x2 + 2x3 + 4x4 + 5x5 = 8 3 SEEE/SKEE1022 (a) Write the MATLAB code to find the values of all the coordinates. (2 marks) (b) Using only det, determine the area of the arbitrary shape in Figure Q4, if the following coordinates are known. Point X2 Y2 X3. Ya Coordinate (x,y) 1,20 5.20 5,1 1,1 10.10 X5Y's
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
