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
Text graphic function - Graphics objects: The text graphic function permits text to be printed in a Figure Window, involving special characters which are printed by using \spe

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Initializing the data structure - Function: Function is shown as:   >> printcylvols(cyls) Cylinder x has a volume of 169.6 Cylinder a has a volume of 100.5

Forward substitution: The Forward substitution (done methodically by first getting a 0 in the a 21 place, and then a 31 , and lastly a 32 ): For the Gauss technique,

Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to

Example of Exponential function modular program: In order to view the distinction in the approximate value for e as n increases, the user kept choosing Limit & entering larger

Interpolation and extrapolation: In most cases, it is desired to estimate values other than at the sampled data points. For illustration, we may want to estimate what the temp

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Help command: The help command is used with the script rectarea, the function readlenwid, and the major function printrectarea. To see the first comment in the subfunction, as