LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a determinant VI?

I would like to create a program to calculate 3x3 matrix determinant. I know labview provided this function but i want to build myself. Any idea?

0 Kudos
Message 1 of 8
(6,246 Views)

Maybe this will help you:

 

Remember!!: this is only true with matrices from 3x3.

 

You could use "get matrix diagonal" and "get matrix elements"

 

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 8
(6,233 Views)

How about an array and a FOR-Loop? Here's a brute-force attempt:

 

2013-10-29_3x3 sarrus.png

 

 

 

 

Regards,
Alex

 

0 Kudos
Message 3 of 8
(6,209 Views)

Look at the Wikipedia article on determinants. In the Calculation section you will find discussion of alternate methods which are considerably more efficient for large matrices.  For your 3x3 matrix that is not an issue, but if you are interested in numerical calculation techniques, you should study those other methods. Very often using the definition of a mathematical process is far from the best way to calculate the result numerically on a computer.

 

Lynn

0 Kudos
Message 4 of 8
(6,200 Views)

The Numerical Recipes books offer code snippets and algorithms designed for efficient computer use.  You will need to translate from C/Fortran to LabVIEW, but that is usually fairly straightforward.  The "obsolete" versions are online with full text.

0 Kudos
Message 5 of 8
(6,168 Views)

There's a built-in Determinant function.

Functions -> Mathematics -> Linear Algebra -> Determinant

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 6 of 8
(6,138 Views)

 

There's a built-in Determinant function.

Functions -> Mathematics -> Linear Algebra -> Determinant


 

 

This is what the OP said:


I know labview provided this function but i want to build myself.


 

 

 

 

 

 

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 7 of 8
(6,118 Views)

I noticed that after I clicked "Post".

Sorry for the wasted electrons (at least they were recycled).

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 8
(6,105 Views)