q2 please
find x1.x2.x3.x4 using matlab
Q2 MATLAB CODE:
%We can write the given four equation in the form
AX=B
%The A matrix is a 4*4 Matrix (By taking respective
coefficients)
A=[2 1 -1 2;4 5 -3 6;-2 5 -2 6;4 11 -4 8]
%The B matrix is a column matrix(By taking respective
coefficients)
B=[5;9;4;2]
%solving by using 2 methods
SOL1=inv(A)*B %solving by using the inverse function
SOL2=A\B %Solving by using \ operator. This is faster in
computation
OUTPUT:
x1=1
x2=-2
x3=1
x4=3
q2 please find x1.x2.x3.x4 using matlab &73 3:45 zain JO 4ll ring Q1 a function with...
q3 please using matlab zain Jo. Ø 73 3:45 • nering Q1: a function with the name "Area Circumference to calculate the area and circumference tput) of a rectangle. Define the inputs of this function as required. (6marks) Write a manuscript to solve the following system of equations based on (A]x] =[b]. Find x1, x2 4. (5 Marks) 2x1 + x2-03 + 2x4 = 5 4x1 +5x2-3x3 + 6x4 = 9 -2x1 +5x2 - 2.03 + 6x4 = 4 4x1...