Illustration of gauss-jordan, MATLAB in Engineering

Assignment Help:

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


Related Discussions:- Illustration of gauss-jordan

Algorithm for subfunction, Algorithm for subfunction: The algorithm fo...

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

Data structures, Data structures: The Data structures are variables wh...

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

Matrix solutions of the linear algebraic equation, Matrix solutions to syst...

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

Vectors of structures, Vectors of Structures: In numerous applications...

Vectors of Structures: In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual s

Example of file ploting data, Example of file ploting data: As the oth...

Example of file ploting data: As the other example, a data file called 'compsales.dat' stores the sales figures (in millions) for divisions in a company. Each line in the f

Video shot boundary detection, I dont know how to input different videos o...

I dont know how to input different videos on matlab program

Program to counting in a while loop, Program to Counting in a while loop: ...

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

Vector operations, Vector operations: As vectors are special cases of ...

Vector operations: As vectors are special cases of matrices, the matrix operations elaborated (addition, subtraction, multiplication, scalar multiplication, transpose) work on

Menu driven modular program, Application: Menu driven Modular Program ...

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

Patch function - graphics objects, Patch function - graphics objects: ...

Patch function - graphics objects: The patch function is used to generate a patch graphics object, which is made from 2-dimensional polygons. The patch is defined by its verti

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd