Question: You will write a Matlab user defined function that take a user input of a square matrix of any size. Your code will then

You will write a Matlab user defined function that take a user input of a square matrix of any size. Your

You will write a Matlab user defined function that take a user input of a square matrix of any size. Your code will then perform checks to determine whether to use the Gauss-Seidel or Gauss-Jordan method to solve the system. Your code will then solve the system and return the values of xn. You may use third-party code for the Gauss-Seidel and Gauss-Jordan routines but you must cite the source of your code; comment it fully; write pseudocode for it and provide the appropriate data flow diagrams (visio). It is standard industry practice to reuse good code routines for complex mathematical operations. The following list of steps may help you: Ask user to input a matrix Check if the matrix is square - if not exit with message If yes- check for diagonal dominance (as a function preferably) If yes- Gauss-Seidel k If no- Check or positive-definiteness If yes- Gauss-Seidel If no-Gauss-Jordan Output values of X End Submit exactly 6 files: 1. A detailed visio data flow diagram (pdf) for each section (you determine how to divide up your data flow into smaller sections) 2. An overarching simplified visio data flow diagram (pdf) 3. Pseudocode with real equations (pdf) (DO NOT USE AN ONLINE TOOL FOR THIS, NO MARKS WILL BE AWARDED FOR AUTOMATICALLY GENERATED PSEUDOCODE) Fully commented code. This applies to all code whether or not you have written it (pdf) Your sample outputs (pdf) 6. Your original matlab file (.m file) 4. 5.

Step by Step Solution

3.39 Rating (158 Votes )

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 Organizational Behavior Questions!