logo for matrixlab-examples.com
[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines


Home
Matrixmania Blog
Contact
-> Sitemap <-
Matlab Books
Quick Matlab Guide
Matlab Tutorials
Matlab Examples
Matlab Flow Control
Boolean Algebra
Linear Algebra
Matlab 2D Plots
Matlab 3D Plots
Matlab GUI
Matlab Cookbook I
Matlab Cookbook II
Probability and Stats
Forums and Help
Relevant Links
Fun!
Your own Website?
Terms/Policies
leftimage for matrixlab-examples.com

Determinants in Matlab

The symbol

determinant symbol

which consists of the four numbers a1, b1, a2, b2 arranged in two rows and two columns is called a determinant of second order or of order two. The four numbers are called its elements. By definition,

determinant of second order solved 

Thus example of a determinant. Here, the elements 2 and 3 are in the first row, and the elements 4 and 1 are in the second row. Elements 2 and 4 are in column one, and elements 3 and 1 are column two.

The method of solution of linear equations by determinants is called the Cramer’s Rule. A system of two linear equations in two unknowns may be solved using a second order det. Given the system of equations 

a1x + b1y = c1
a2x + b2y = c2

it is possible to obtain

solution for x and y

These values for x and y may be written in terms of second order dets, as follows:

 x and y solved with determinants

Example: 



Solve the system of equations

2x + 3y = 16
4x + y = -3

The denominator for both x and y is  example of a determinant.

Then solution for x, and solution for y.


In Matlab, a determinant can be calculated with the built-in function 'det()'.

Using the same numbers as in the example above,

if A = [2 3; 4 1], then det(A) = -10;
if B = [16 3; -3 1], then x = det(A)/det(B) = -2.5;
if C = [2 16; 4 -3], then y = det(C)/det(A) = 7

Naturally, you can use the function det() to find determinants of higher order.

See another example of simultaneous equations...

From 'determinants' to home
From 'determinants' to 'Linear Algebra'


footer for determinants page