02-04-2019 01:59 PM
I have 6 line equations (Y=mx + b) that do not intersect at the same point. Is there any pre-written LabVIEW code that will take the line coefficients and find me the closest intersection (x,y) point using least-squares fit?
Solved! Go to Solution.
02-04-2019 02:09 PM
02-05-2019 03:43 AM
Thanks for the pointer to the "Linear Algebra" palette, inside there is a "Solve Linear Equations" VI and in the context help says "When m > n, the system has more equations than unknowns, so it is an over-determined system. Since the solution that satisfies AX = Y may not exist, the VI finds the least-square solution X, which minimizes ||AX – Y||."
I didn't have to do a thing other than build up the matrix and column vectors A and Y, respectively.
Thanks!