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
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


Cross Product: The cross or outer product a × b of two vectors a and b is defined only whenever both a and b are the vectors in three-dimensional space, that means that they b


Reduced Row Echelon Form: The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system: The Reduced Row Echelon Forms take this one step

Illustration of Preallocating a Vector: Illustration of calling the function: >> myveccumsum([5 9 4]) ans =     5  14  18 At the first time in the loop, outvec wil

Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th

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

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