Inverse of square matrix, MATLAB in Engineering

Inverse of square matrix:

The inverse is, hence the result of multiplying the scalar 1/D by each and every element in the preceding matrix. Note that this is not the matrix A, but is determined by using the elements from A in the manner shown below: the values on the diagonal are reversed, and the operator negation is used on the other two values.

Note that if the determinant D is 0, it will not be possible to find the inverse of the matrix A.

20_Inverse of square matrix.png

The unknowns are found by evaluating this matrix multiplication, and hence:

x1 = -1 * 2 +  1 * 6 = 4

x2 = 1 * 2 + (-1/2) * 6 = -1

This, obviously, is the similar solution as found by the intersection of the two lines.

To do this in a MATLAB, at first we would generate the coefficient matrix variable a and column vector b.

 

>> a = [1 2; 2 2];

>> b = [2;6];

Posted Date: 10/22/2012 3:10:11 AM | Location : United States







Related Discussions:- Inverse of square matrix, Assignment Help, Ask Question on Inverse of square matrix, Get Answer, Expert's Help, Inverse of square matrix Discussions

Write discussion on Inverse of square matrix
Your posts are moderated
Related Questions
Simplification Functions: There are numerous functions which work with expressions, and simplify the terms. Not all the expressions can be simplified, but the simplify functio

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

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

Illustration of Matrix solutions: For illustration, consider the three equations below with 3unknowns x 1 ,x 2 , and x 3 : We can write this in the form Ax = b here A

Function fieldnames - structure functions: The function fieldnames will return the names of the fields which are contained in the structure variable. >> pack_fields = fiel

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen

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

str2num function - String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.

Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place