Forward elimination, MATLAB in Engineering

Forward elimination:

In forward elimination, we want to obtain a 0 in the a21 position. To accomplish this, we can alter the second line in the matrix by subtracting from it 2 * the first row.

In this way we would write this ERO as:

643_Forward elimination.png

Now, placing it back in the matrix equation form:

1185_Forward elimination1.png

It says that the second equation is now -2x2 = 2 therefore x2 = -1. Now put it into the first equation:

x1 +  2(-1) = 2, and hence  x1 = 4.

This is known as the back-substitution.

Posted Date: 10/22/2012 4:27:33 AM | Location : United States







Related Discussions:- Forward elimination, Assignment Help, Ask Question on Forward elimination, Get Answer, Expert's Help, Forward elimination Discussions

Write discussion on Forward elimination
Your posts are moderated
Related Questions
Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)

Passing Structures to Functions: The whole structure can be passed to a function, or separate fields can be passed. For illustration, here are the two distinct versions of a f

Use polyval to evaluate the derivative at xder. This will be the % slope of the tangent line, "a" (general form of a line: y = ax + b). % 4. Calculate the intercept, b, of t

Example of Plotting from a Function: For illustration, the function can be called as shown below:      >> y = [1:2:9].^3      y =     1  27  125  343  729

Execution steps: Whenever the program is executed, the steps below will take place: The script calcandprintarea starts executing. The calcandprintarea calls the readr

Application: Menu driven Modular Program Numerous longer, more involved programs which have interaction with the user are menu-driven, that means that the program prints a men

Plotting from a Function: The following function creates a Figure Window as shown in figure, which shows various types of plots for similar y vector. The vector is passed as a

Creating the structure Variables: Creating a structure variable can be accomplished by simply storing the values in fields by using assignment statements, or by using the stru

Gauss-Jordan: The Gauss-Jordan elimination technique begins in similar way which the Gauss elimination technique does, but then rather than of back-substitution, the eliminati

Function strncmp: The function strncmp compares only the first n characters in the strings and ignores the rest. The initial two arguments are strings to compare, and third ar