MATLAB question The question is below Please tell me the rig

MATLAB question

The question is below.

Please tell me the right order about this question.

Given: A = (10 2 -1 -3 -5 2 1 1 6); b = (27 -123/2 -43/2) and AA = [A b]. Order the following code as needed to solve for the x vector via Naïve Gaussian method. AA(3, :) = AA(3, :) - AA(3, 1) ./AA(1, 1) .* AA(1, :) AA(3, :) = AA(3, :) - AA(3, 2) ./AA(2, 2) .* AA(2, :) x(3, 1) = AA(3, end)./AA(3, 3) x(2, 1) = (AA(2, end)-AA(2, 3).*x(3))./AA(2, 2) AA(2, :) = AA(2, :) - AA(2, 1) ./AA(1, 1) .* AA(1, :) x(1, 1) = (AA(1, end)-AA(1, 3).*x(3)-AA(1, 2).*x(2))./AA(1, 1)

Solution

We worry about the solution after reducing the augmented matrix AA

The first step is to use the first row to reduce the second and third rows (in Naive Gauss)

The first step is therefore E and the second step is A (not B because step B uses the second row to reduce)

Next we use the second row to reduce the third row. So that the third step is B

We are not ready to solve for x

As the third row (at this point) contains only one non-zero entry at AA(3,3), the solution is x(3,1)=AA(3,end)/AA(3,3)

Thus, the next step is C

After this, we use the value of x(3,1) to find x(2,1) and the second equation. This is done by step D

And finally, we use x(3,1) and x(2,1) along with the first equation to solve for x(1,1)

This is done by step F

The order of the code is therefore: E A B C D F

MATLAB question The question is below. Please tell me the right order about this question. Given: A = (10 2 -1 -3 -5 2 1 1 6); b = (27 -123/2 -43/2) and AA = [A

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site