LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Flat surface fit on 3d graph

Solved!
Go to solution

Hi

 

I'd like to find a flat surface fit on a circle that is rotated 3d. I'd like to then rotate it to see it in XY graph.

I was trying to use solve linear equation vi with 

A*X+B*Y+C*Z+D=0

where X, Y and Z are columns with coords of data points.

so linear equation would be [X Y Z 1] as a matrix, and known vector as [0]. But linear equation that solve this is obviously A=0, B=0, C=0, D=0. So I can't really use this function.

 

Is there another way to do it?

What am I doing wrong?

0 Kudos
Message 1 of 2
(2,948 Views)
Solution
Accepted by topic author siadajpan

All right, I found a solution

Instead of making 

A*X+B*Y+C*Z+D=0

I can make

A/D*X+B/D*Y+C/D*Z=-1

 

LV is giving me A/D, B/D, C/D values, then I can calculate D

Message 2 of 2
(2,937 Views)