Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab: Cramer's Rule Example solution: 2x + y + z = 3 x y z = 0 x + 2y + z = 0 Answers:

Matlab: Cramer's Rule

Example solution:

2x + y + z = 3 x y z = 0 x + 2y + z = 0 Answers: x = 1, y = 2, and z = 3

image text in transcribed

Requirements l. Write a main Function that loops and W solve for the above x, y, and z but as a general case of n equa tions and n unknown s 2. Write an embedded function with 3 parameters: a. Coefficient Matrix (CO) b. Constant Vector (K) c. Dimension of the Coefficient Matrix (n) 3. This function outputs a Vector of n unknowns. For the example in this lab it Will output x, y, and z (as M(1), M (2), and M(3) 4. This function should be built around a for loop driven by n the number of equations unknowns a. For each cycle or pass of the loop this function will create the nth variable's Vector such as M above from the Coefficient Matrix and Constant Vector b. In this proces the nth answer is found by the Determinant Ratio and is placed in the answer in the nth cell of the Answer Vector c. Finally when the loop completes output the Answer Vector to the calling Function 5. SPECIAL TASK FOR DATA ENTRY a. Read and run the Dialog Fill Matrix.m program and carefully observe what it is doing. Read about DIALOG boxes to help b. Modify this code to add one new Dialog box to enter the 3 element Constant Vector c. Copy this code into your program to allow you to enter the data via dialog box d. NOTE at this point this code with be limited to the exact 3x3 problem at hand

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. What are your creative strengths?

Answered: 1 week ago