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
Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop

Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

Example of Gauss-jordan: For a 2×2 system, this would results and for a 3 × 3 system, Note that the resulting diagonal form does not involve the right-most col

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 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

1. Write a MATLAB function (upperTriangle) using the functions you previously created to convert a matrix to upper triangular form. Start with row 1, column1. Find the row that has

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

Use of While loop: Here is an illustration of calling the function, passing 5000 for the value of the input argument high. >> factgthigh(5000) ans = 5040 The itera

Function strncmp: The function strncmp compares only the first n characters in the strings and ignores the rest. The initial two arguments are strings to compare, and third ar