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
Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym

Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes

Finding sums and products: A very general application of a for loop is to compute sums and products. For illustration, rather than of just printing the integers 1 through 5, w

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

Illustration of Sound files: For illustration, the following script generates a subplot which shows the signals from chirp and from train, which is as shown in figure:

Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know

Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';

Gauss Elimination: The Gauss elimination technique consists of:    Generating the augmented matrix [A b]    Applying EROs to augmented matrix to obtain an upper trian

I have a vector of X, one for Y , one for x-direction velocity U and one for y-direction velocity V. they are at same size. How can I plot streamline of that flow? I follow all exa

Displaying the cell arrays: There are several techniques of displaying the cell arrays. The celldisp function shows all elements of the cell array:   >> celldisp(cellro