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

Technique to create nested structures, Technique to create Nested structure...

Technique to create Nested structures: This technique is the most proficient. Though, the other technique is to build the nested structure one field at a time. As this is a ne

Function cellplot - cell array, Function cellplot - Cell array: The fu...

Function cellplot - Cell array: The function cellplot place a graphical display of the cell array in a figure Window; though, it is a high-level view and fundamentally just di

Showing cell array elements and attributes, Referring to and Showing Cell A...

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

Ischar function - string, ischar function: The ischar function return ...

ischar function: The ischar function return the logical true if an array is a character array, or logical false if not. >> vec = 'EK127'; >> ischar(vec) ans =

Example of image processing, Example of image processing: The other il...

Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown

Gauss-jordan, Gauss-Jordan: The Gauss-Jordan elimination technique beg...

Gauss-Jordan: The Gauss-Jordan elimination technique begins in similar way which the Gauss elimination technique does, but then rather than of back-substitution, the eliminati

Polyhedron - graphics objects, Polyhedron - graphics objects: The fiel...

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

Technique is to create one element - vector, Technique is to create one ele...

Technique is to create one element - vector: Technique is to create one element with the values from one structure, and use repmat to replicate it to the preferred size. Then,

Binary search, Binary Search: The binary search supposes that the vect...

Binary Search: The binary search supposes that the vector has been sorted first. The algorithm is just similar to the way it works whenever looking for a name in a phone direc

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