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 =




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
Program to Counting in a while loop: The script initializes variable counter to 0. Then, in the while loop action, each and every time the user successfully enter a number, th

Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some

Finding a sting - function findstr: The function findstr receives two strings as input arguments. It finds all the occurrences of shorter string contained by the longer, and r

function imread: The function imread can read an image file, for illustration a JPEG (.jpg) file. The function reads color images into a 3-dimensional matrix. >> myimage1

Polyhedron - graphics objects: The field polyhedron.vertices is a matrix in which each row presents (x,y,z) points. The field polyhedron.faces defines the faces: for illustrat

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Sort algorithm for Sorting vectors of structures: Note that only the price field is compared in the sort algorithm, but the whole structure is replaced. That is therefore each

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

Finding products by for loop: an illustration, when 5 is passed to be the value of the input argument n, the function will compute and return 1 + 2 + 3 + 4 + 5, or 15: >> s

Anonymous Functions: The anonymous function is a very easy, one-line function. The benefit of an anonymous function is that it does not have to be stored in an M-file. This ca