Reduced row echelon form, MATLAB in Engineering

Reduced Row Echelon Form:

The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system:

1255_Reduced Row Echelon Form.png

The Reduced Row Echelon Forms take this one step further to answer in all 1's instead of a', therefore the column of b's is the solution:

1925_Reduced Row Echelon Form1.png

The MATLAB has a built-in function to do this, known rref. For illustration, for the preceding illustration:

>> a = [1 3 0; 2 1 3; 4 2 3];

>> b = [1 6 3]';

>> ab = [a b];

>> rref(ab)

ans =

1 0 0 -2

0 1 0  1

0 0 1  3

 

The answer is found from the last column, therefore x1 = -2, x2 = 1, and x3 = 3. To obtain this in a column vector in a MATLAB:

>> x = ans(:,end)

x =

       -2

        1

        3

Posted Date: 10/22/2012 4:30:01 AM | Location : United States







Related Discussions:- Reduced row echelon form, Assignment Help, Ask Question on Reduced row echelon form, Get Answer, Expert's Help, Reduced row echelon form Discussions

Write discussion on Reduced row echelon form
Your posts are moderated
Related Questions
Interchange rows : for illustration interchanging rows ri and rj is written as

True color matrice: The true color matrices are the other way to represent images. The true color matrices are 3-dimensional matrices. The first two coordinates are the coordi

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

Simplification Functions: There are numerous functions which work with expressions, and simplify the terms. Not all the expressions can be simplified, but the simplify functio

Passing arguments to functions: In all these functions examples faraway, at least one of the arguments was passed in the function call to be the value(s) of the equivalent inp

Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop

i want to run 4 instances of my matlab code on 4 processor cores. im executing the job from head node. i created a parallel job and assigned number of workers. but i don''t get bac

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

Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

Use of Nested if-else statements: By using the nested if-else to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is