01-15-2013 09:04 PM
In Labview what is the easiest way to solve the following problem?
|---- ---| -1 |-- ---| |-- --|
| 1 1 0 | | a | | x |
| 1 0 1 | | b | = | y |
| 0 1 1 | | c | | z |
|__ __| |_ _| |_ _|
from the equations:
a = x + y
b = x + z
c = y + z where a, b, c are know values. The problem I actually have is a system of 9 equations.
Thank you.
01-15-2013 09:45 PM
LabVIEW includes a variety of linear algebra VIs that are useful for problems like this. Take a look at the Solve Linear Equations VI.
Chris M
01-15-2013 10:14 PM
I dont really see how I can apply the VI that you suggested to solve my problem.
01-15-2013 10:30 PM
You have a known matrix, a known vector, and a vector you need to solve for given the equation Ax = b. This is exactly the problem this VI is designed to solve:
With the values I made up for a, b, and c, the solution is [2, 3, 4].
Chris M
01-15-2013 10:41 PM
The values of the matrix are not known, so I'm trying to use an inverse square determinant to solve the problem.
01-15-2013 10:59 PM
I think you'll need to better clarify exactly what you are trying to solve. Your original post suggests that the values of x, y, and z are the only unknowns. If you're given a set of equations like (a=x+y, b=x+z, c=y+z) then that is indeed the case, and the solution I mentioned will work. If that's not the case, then please be as detailed as possible in describing the actual problem you're working on.
Chris M
01-15-2013 11:13 PM
In my application I'm trying to find inductance values in a circuit. Basically the circuit is a three phase motor and I can only measure the paths between sets of coils. to calculate the individual component values. So I dont have coefficients to enter in the top matrix as you've shown. That's why I was trying to use a square determinant.
01-15-2013 11:21 PM
@chuck72352 wrote:
So I dont have coefficients to enter in the top matrix as you've shown.
But those are the coefficients you provided in your example! So if you don't have them, how were you able to provide them?