Question: Please answer with Matlab code, thank you! MEE-2011: Linear analysis with numerical methods for engineers Try it! #7: Numerical solution of simultaneous equations Drue Tharsday

Please answer with Matlab code, thank you!
 Please answer with Matlab code, thank you! MEE-2011: Linear analysis with
numerical methods for engineers Try it! #7: "Numerical solution of simultaneous equations"

MEE-2011: Linear analysis with numerical methods for engineers Try it! #7: "Numerical solution of simultaneous equations" Drue Tharsday the start of class in my "box" (18/Oct/2018) 1. Use the following commands to create the matrix [AA] and the vector b You will use these matrices to test your namerical solvers that solve [AAJ (a) These steps create a 6x6 random array of integers which is diagonally dominant rag (1e4.cputine) AA randiCE-10 101. 6, 6): >> %seeds the randon nomber geserat or >> for jj_1.6. AA(jj.jj)-2-am(abs(AA(jj.:))); end (b) This step creates a random RHS vector b >> b-randi(E-20,20],6,1) 2. Write a Gaass elimination" function in matlab to solve for F, as shown in class. Print out the function for submission, and demonstrate using "diary that you get the same answer as the matlab built-in operation; 3. Write an iterative "Gauss-Seidel' function in matlab to solve for , as shown in class. Print out the function for submission, and demonstrate using "diary" that you get the same answer as the matlab built-in operation; 4. Two-dimensional Gauss Seidel iteration (a) Reproduce the "finite-difference solution" temperature-calculation we did in class I would like you to turn in i. The derivation for this finite-diference solution for T(f,3) at an interior node. ii. A statement of the "boundary conditions" the value of T(i6,3) at the four respective bounding edges. ii. The matlab code you used to compute the values. (b) Plot the 2D array (0 Sr s3, 0s v S 2) for the temperature using tbe sesh(x,y.T) matlab command Use Ar-Ay- The problem was: OPT OPT + Recall the finite-difference approximations for points were: and used to create the governing equation or the internal node (see over for "the wizards" variation of this problem)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!