Question

q2 please

find x1.x2.x3.x4 using matlab

&73 3:45 zain JO 4ll ring Q1 a function with the name Area Circumference to calculate the area and circumference tput) of a

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

NO Editor - C:\Users\muhsin test.m +1 Untitled3. mx test. m x ss. mx GetReParam.m x PrintRe.m xExam2_001. mx anonymo We can w

OUTPUT:

x1=1

x2=-2

x3=1

x4=3

Add a comment
Know the answer?
Add Answer to:
q2 please find x1.x2.x3.x4 using matlab &73 3:45 zain JO 4ll ring Q1 a function with...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • q3 please using matlab zain Jo. Ø 73 3:45 • nering Q1: a function with the...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT