Illustration of gauss-jordan, MATLAB in Engineering

Illustration of gauss-jordan:

Here's an illustration of performing such substitutions by using MATLAB

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

a =

1 3 0

2 1 3

4 2 3

>> b = [1 6 3]'

b =

       1

       6

       3

>> ab = [a b]

ab =

1 3 0 1

2 1 3 6

4 2 3 3

>> ab(2,:) = ab(2,:) - 2*ab(1,:)

ab =

1  3 0 1

0 -5 3 4

4  2 3 3

>> ab(3,:) = ab(3,:) - 4 * ab(1,:)

ab =

1  3 0  1

0 -5 3  4

0 -10 3 -1

>> ab(3,:) = ab(3,:) - 2 * ab(2,:)

ab =

1  3  0  1

0 -5  3  4

0  0 -3 -9

>> ab(2,:) = ab(2,:) + ab(3,:)

ab =

1  3  0  1

0 -5  0 -5

0  0 -3 -9

>> ab(1,:) = ab(1,:) + 3/5*ab(2,:)

ab =

1  0  0 -2

0 -5  0 -5

0        0 -3 -9

Posted Date: 10/22/2012 5:10:44 AM | Location : United States







Related Discussions:- Illustration of gauss-jordan, Assignment Help, Ask Question on Illustration of gauss-jordan, Get Answer, Expert's Help, Illustration of gauss-jordan Discussions

Write discussion on Illustration of gauss-jordan
Your posts are moderated
Related Questions
Illustration sorting vectors of structures: This function sorts the structures depend only on the price field. A more common function is shown next, that receives a string whi

Function rmfield - structure: The function rmfield eliminates a field from the structure. It returns a new structure with field eliminated, but does not modify the original st

Reading from a Mat-File: The load function is used to read from various types of files. As with save function, by default the file will be supposed to be a MAT-file, and load

Matrix solutions to systems of the linear algebraic equations: The linear algebraic equation is an equation of the form a 1 x 1 + a 2 x 2 + a 3 x 3    .  .  .  .  a n x n

Illustration of gauss-jordan: Here's an illustration of performing such substitutions by using MATLAB >> a = [1 3 0; 2 1 3; 4 2 3] a = 1 3 0 2 1 3 4 2

Subfunctions: Though, it is possible to have more than one function in a given M-file. For illustration, if one function calls the other, the first function would be the prima

Tracing of Square matrices: The trace of a square matrix is the addition of all the elements on the diagonal. For illustration, for the preceding matrix it is 1 + 6 + 11 + 16,

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

A matlab function to calculate filter order

printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume